Skip to content

Commit

Permalink
Don't need to install milvus if running on cloud; Don't need schema i…
Browse files Browse the repository at this point in the history
…f using Milvus Client.

Signed-off-by: christy <[email protected]>
  • Loading branch information
christy committed Dec 18, 2023
1 parent 12c80b0 commit cc87645
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bootcamp/RAG/readthedocs_zilliz_langchain.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
"## Create a Milvus collection\n",
"\n",
"You can think of a collection in Milvus like a \"table\" in SQL databases. The **collection** will contain the \n",
"- **Schema** (or no-schema Milvus Client). \n",
"- **Schema** (or [no-schema Milvus client](https://milvus.io/docs/using_milvusclient.md)). \n",
"💡 You'll need the vector `EMBEDDING_LENGTH` parameter from your embedding model.\n",
"Typical values are:\n",
" - 768 for sbert embedding models\n",
Expand Down
8 changes: 2 additions & 6 deletions bootcamp/Retrieval/imdb_milvus_client.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"outputs": [],
"source": [
"# For colab install these libraries in this order:\n",
"# !pip install milvus, pymilvus, langchain, torch, transformers, python-dotenv\n",
"# !pip install pymilvus, langchain, torch, transformers, python-dotenv\n",
"\n",
"# Import common libraries.\n",
"import time\n",
Expand Down Expand Up @@ -175,11 +175,7 @@
"- **Vector index** for efficient vector search\n",
"- **Vector distance metric** for measuring nearest neighbor vectors\n",
"- **Consistency level**\n",
"In Milvus, transactional consistency is possible; however, according to the [CAP theorem](https://en.wikipedia.org/wiki/CAP_theorem), some latency must be sacrificed. 💡 Searching movie reviews is not mission-critical, so [`eventually`](https://milvus.io/docs/consistency.md) consistent is fine here.\n",
"\n",
"Some supported [data types](https://milvus.io/docs/schema.md) for Milvus schemas are:\n",
"- INT64 - primary key\n",
"- FLOAT_VECTOR - embedings = list of `numpy.ndarray` of `numpy.float32` numbers\n"
"In Milvus, transactional consistency is possible; however, according to the [CAP theorem](https://en.wikipedia.org/wiki/CAP_theorem), some latency must be sacrificed. 💡 Searching movie reviews is not mission-critical, so [`eventually`](https://milvus.io/docs/consistency.md) consistent is fine here.\n"
]
},
{
Expand Down

0 comments on commit cc87645

Please sign in to comment.