Created using Colaboratory
Browse files
notebooks/11-Adding_Hybrid_Search.ipynb
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
"metadata": {
|
5 |
"colab": {
|
6 |
"provenance": [],
|
7 |
-
"authorship_tag": "
|
8 |
"include_colab_link": true
|
9 |
},
|
10 |
"kernelspec": {
|
@@ -1229,7 +1229,7 @@
|
|
1229 |
"import chromadb\n",
|
1230 |
"from llama_index.vector_stores import ChromaVectorStore\n",
|
1231 |
"\n",
|
1232 |
-
"#
|
1233 |
"db = chromadb.PersistentClient(path=\"./mini-llama-articles\")\n",
|
1234 |
"chroma_collection = db.get_or_create_collection(\"mini-llama-articles\")\n",
|
1235 |
"vector_store = ChromaVectorStore(chroma_collection=chroma_collection)"
|
@@ -1451,8 +1451,8 @@
|
|
1451 |
{
|
1452 |
"cell_type": "code",
|
1453 |
"source": [
|
1454 |
-
"# Define
|
1455 |
-
"# and
|
1456 |
"custom_query_engine = RetrieverQueryEngine(\n",
|
1457 |
" retriever=custom_retriever,\n",
|
1458 |
" response_synthesizer=response_synthesizer,\n",
|
|
|
4 |
"metadata": {
|
5 |
"colab": {
|
6 |
"provenance": [],
|
7 |
+
"authorship_tag": "ABX9TyO362/noWgs82KNvLAlRlkT",
|
8 |
"include_colab_link": true
|
9 |
},
|
10 |
"kernelspec": {
|
|
|
1229 |
"import chromadb\n",
|
1230 |
"from llama_index.vector_stores import ChromaVectorStore\n",
|
1231 |
"\n",
|
1232 |
+
"# Load the vector store from the local storage.\n",
|
1233 |
"db = chromadb.PersistentClient(path=\"./mini-llama-articles\")\n",
|
1234 |
"chroma_collection = db.get_or_create_collection(\"mini-llama-articles\")\n",
|
1235 |
"vector_store = ChromaVectorStore(chroma_collection=chroma_collection)"
|
|
|
1451 |
{
|
1452 |
"cell_type": "code",
|
1453 |
"source": [
|
1454 |
+
"# Define a query engine that is responsible for retrieving related pieces of text,\n",
|
1455 |
+
"# and using a LLM to formulate the final answer.\n",
|
1456 |
"custom_query_engine = RetrieverQueryEngine(\n",
|
1457 |
" retriever=custom_retriever,\n",
|
1458 |
" response_synthesizer=response_synthesizer,\n",
|