Documentation
¶
Index ¶
- type Config
- type Milvus
- func (m *Milvus) Delete(ctx context.Context, documentIDs ...string) error
- func (m *Milvus) Insert(ctx context.Context, chunks map[string][]*gptbot.Chunk) error
- func (m *Milvus) LoadJSON(ctx context.Context, filename string) error
- func (m *Milvus) Query(ctx context.Context, embedding gptbot.Embedding, topK int) ([]*gptbot.Similarity, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // CollectionName is the collection name. // This field is required. CollectionName string // CreateNew specifies whether to overwrite if the collection already exists. CreateNew bool // Addr is the address of the Milvus server. // Defaults to "localhost:19530". Addr string // Dim is the embedding dimension. // Defaults to 1536 (the dimension generated by OpenAI's Embedding API). Dim int }
Click to show internal directories.
Click to hide internal directories.