Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update astradb_haystack_integration.ipynb #50

Merged
merged 1 commit into from
Feb 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update astradb_haystack_integration.ipynb
  • Loading branch information
masci committed Feb 20, 2024
commit 1c09e541b742b5bb1a9b8579808ca0c7a9bdb0f5
6 changes: 2 additions & 4 deletions notebooks/astradb_haystack_integration.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,9 @@
"import os\n",
"\n",
"os.environ[\"OPENAI_API_KEY\"] = getpass(\"Enter your openAI key:\")\n",
"os.environ[\"ASTRA_API_ENDPOINT\"] = getpass(\"Enter your Astra API Endpoint:\")\n",
"os.environ[\"ASTRA_TOKEN\"] = getpass(\"Enter your Astra application token (e.g.AstraCS:xxx ):\")\n",
"os.environ[\"ASTRA_DB_API_ENDPOINT\"] = getpass(\"Enter your Astra API Endpoint:\")\n",
"os.environ[\"ASTRA_DB_APPLICATION_TOKEN\"] = getpass(\"Enter your Astra application token (e.g.AstraCS:xxx ):\")\n",
"ASTRA_DB_COLLECTION_NAME = getpass(\"enter your Astra collection name:\")\n",
"ASTRA_DB_KEYSPACE_NAME = getpass(\"Enter your Astra keyspace name:\")"
]
},
{
Expand Down Expand Up @@ -237,7 +236,6 @@
"# embedding_dim is the number of dimensions the embedding model supports.\n",
"document_store = AstraDocumentStore(\n",
" astra_collection=ASTRA_DB_COLLECTION_NAME,\n",
" astra_keyspace=ASTRA_DB_KEYSPACE_NAME,\n",
" duplicates_policy=DuplicatePolicy.SKIP,\n",
" embedding_dim=384,\n",
")\n",
Expand Down