Documentation
¶
Index ¶
- type Client
- type DocumentPart
- type VectorStore
- func (s *VectorStore) CheckDocumentExist(ctx context.Context, documentID string) (bool, error)
- func (s *VectorStore) DeleteDocuments(ctx context.Context, documentID string) error
- func (s *VectorStore) GetMostRelevantDocuments(ctx context.Context, embedding []float32, threshold float32, limit int) ([]*DocumentPart, error)
- func (s *VectorStore) Init(ctx context.Context) error
- func (s *VectorStore) Release()
- func (s *VectorStore) SaveDocumentEmbedding(ctx context.Context, documentID string, partIndex int, content string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) BuildKnowledgeBase ¶
type DocumentPart ¶
type VectorStore ¶
type VectorStore struct {
// contains filtered or unexported fields
}
func NewPgVectorStore ¶
func NewPgVectorStore() (*VectorStore, error)
func (*VectorStore) CheckDocumentExist ¶
func (*VectorStore) DeleteDocuments ¶
func (s *VectorStore) DeleteDocuments(ctx context.Context, documentID string) error
func (*VectorStore) GetMostRelevantDocuments ¶
func (s *VectorStore) GetMostRelevantDocuments(ctx context.Context, embedding []float32, threshold float32, limit int) ([]*DocumentPart, error)
func (*VectorStore) Release ¶
func (s *VectorStore) Release()
func (*VectorStore) SaveDocumentEmbedding ¶
Click to show internal directories.
Click to hide internal directories.