Skip to content

Commit

Permalink
docs: update Milvus configuration examples (#1030)
Browse files Browse the repository at this point in the history
Co-authored-by: Um Changyong <[email protected]>
Co-authored-by: Jeffrey (Dongkyu) Kim <[email protected]>
  • Loading branch information
3 people authored Dec 3, 2024
1 parent e4cd040 commit fc61882
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion autorag/vectordb/milvus.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __init__(
embedding_model: str,
collection_name: str,
embedding_batch: int = 100,
similarity_metric: str = "l2",
similarity_metric: str = "cosine",
index_type: str = "IVF_FLAT",
uri: str = "http://localhost:19530",
db_name: str = "",
Expand Down
7 changes: 7 additions & 0 deletions docs/source/integration/vectordb/milvus.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ To use the Milvus vector database, you need to configure it in your YAML configu
token: ${MILVUS_TOKEN}
embedding_batch: 50
similarity_metric: cosine
index_type: IVF_FLAT
params:
nlist: 16384

```

Here is a simple example of a YAML configuration file that uses the Milvus vector database and the OpenAI:
Expand All @@ -29,6 +33,9 @@ vectordb:
token: ${MILVUS_TOKEN}
embedding_batch: 50
similarity_metric: cosine
index_type: IVF_FLAT
params:
nlist: 16384
node_lines:
- node_line_name: retrieve_node_line # Arbitrary node line name
nodes:
Expand Down

0 comments on commit fc61882

Please sign in to comment.