Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DocStoreInterface ¶
type DocStoreInterface interface { CreateDocument(ctx context.Context, doc *doc.Document) error UpdateTokens(ctx context.Context, doc *doc.Document) error UpdateDocument(ctx context.Context, doc *doc.Document) error GetDocument(ctx context.Context, entryId int64) (*doc.Document, error) FilterDocuments(ctx context.Context, filter *doc.DocumentFilter) ([]*doc.Document, error) DeleteDocument(ctx context.Context, docId int64) error }
type VectorStore ¶
type VectorStore interface { Store(ctx context.Context, element *vector.Element, extra map[string]any) error Search(ctx context.Context, query vector.VectorDocQuery, vectors []float32, k int) ([]*vector.Doc, error) Get(ctx context.Context, oid int64, name string, group int) (*vector.Element, error) }
Click to show internal directories.
Click to hide internal directories.