Skip to content

Commit

Permalink
templates: fix rag-lancedb template (#18551)
Browse files Browse the repository at this point in the history
  • Loading branch information
akashAD98 committed Mar 5, 2024
1 parent 25c7d52 commit eb0756f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions templates/rag-lancedb/rag_lancedb/chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@
all_splits = text_splitter.split_documents(data)
# Add to vectorDB
vectorstore = LanceDB.from_documents(documents=all_splits,
collection_name="rag-chroma",
embedding=OpenAIEmbeddings(),
)
vectorstore = LanceDB.from_documents(documents=all_splits,
embedding=OpenAIEmbeddings())
retriever = vectorstore.as_retriever()
"""

Expand Down

0 comments on commit eb0756f

Please sign in to comment.