Documentation
¶
Index ¶
- type S
- func (s *S) CreateVectorStore(ctx context.Context, name string, dimensions int) (int64, error)
- func (s *S) DeleteDocuments(ctx context.Context, collectionName, fileID string) error
- func (s *S) DeleteVectorStore(ctx context.Context, name string) error
- func (s *S) InsertDocuments(ctx context.Context, name string, files, texts []string, vectors [][]float32) error
- func (s *S) ListVectorStores(ctx context.Context) ([]int64, error)
- func (s *S) Search(ctx context.Context, collectionName string, vectors []float32, ...) ([]string, error)
- func (s *S) UpdateVectorStoreName(ctx context.Context, oldName, newName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type S ¶
type S struct {
// contains filtered or unexported fields
}
S wraps Milvus client.
func (*S) CreateVectorStore ¶
CreateVectorStore creates a new collection in milvus.
func (*S) DeleteDocuments ¶
DeleteDocuments deletes documents from a collection in milvus by fileID.
func (*S) DeleteVectorStore ¶
DeleteVectorStore deletes a collection in milvus.
func (*S) InsertDocuments ¶
func (s *S) InsertDocuments(ctx context.Context, name string, files, texts []string, vectors [][]float32) error
InsertDocuments inserts documents into a collection in milvus.
func (*S) ListVectorStores ¶
ListVectorStores lists collections in milvus.
Click to show internal directories.
Click to hide internal directories.