Documentation
¶
Index ¶
- type IndexAsyncByDocsIDReq
- type IndexAsyncReq
- type IndexReq
- type Rag
- func (x *Rag) DeleteDocument(ctx context.Context, documentID string) error
- func (x *Rag) GetKnowledgeBaseList(ctx context.Context) (list []string, err error)
- func (x *Rag) Index(ctx context.Context, req *IndexReq) (ids []string, err error)
- func (x *Rag) IndexAsync(ctx context.Context, req *IndexAsyncReq) (ids []string, err error)
- func (x *Rag) Retrieve(ctx context.Context, req *RetrieveReq) (msg []*schema.Document, err error)
- type RetrieveReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IndexAsyncByDocsIDReq ¶
type IndexAsyncReq ¶
type Rag ¶
type Rag struct {
// contains filtered or unexported fields
}
func (*Rag) DeleteDocument ¶
func (*Rag) GetKnowledgeBaseList ¶
GetKnowledgeBaseList 获取知识库列表
func (*Rag) IndexAsync ¶
IndexAsync 通过 schema.Document 异步 生成QA&embedding
Click to show internal directories.
Click to hide internal directories.