Skip to content

Commit

Permalink
Update notebooks/integrations/gemini/qa-langchain-gemini-elasticsearc…
Browse files Browse the repository at this point in the history
…h.ipynb

Co-authored-by: Max Jakob <[email protected]>
  • Loading branch information
ashishtiwari1993 and maxjakob authored Jan 25, 2024
1 parent 4920dd7 commit a05ed9b
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,12 @@
"content = []\n",
"\n",
"for doc in workplace_docs:\n",
" content.append(doc[\"content\"])\n",
" metadata.append({\n",
" \"name\": doc[\"name\"],\n",
" \"summary\": doc[\"summary\"],\n",
" \"rolePermissions\":doc[\"rolePermissions\"]\n",
" })\n",
" content.append(doc[\"content\"])\n",
" metadata.append({\n",
" \"name\": doc[\"name\"],\n",
" \"summary\": doc[\"summary\"],\n",
" \"rolePermissions\":doc[\"rolePermissions\"]\n",
" })\n",
"\n",
"text_splitter = CharacterTextSplitter(chunk_size=50, chunk_overlap=0)\n",
"docs = text_splitter.create_documents(content, metadatas=metadata)"
Expand Down

0 comments on commit a05ed9b

Please sign in to comment.