Skip to content

Commit

Permalink
templates: fix rag-lancedb template (langchain-ai#18551)
Browse files Browse the repository at this point in the history
  • Loading branch information
akashAD98 authored and thebhulawat committed Mar 6, 2024
1 parent 0076bf7 commit e1e78a0
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 e1e78a0

Please sign in to comment.