mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-10 21:35:08 +00:00
templates: fix rag-lancedb template (#18551)
This commit is contained in:
parent
25c7d52140
commit
eb0756f3ee
@ -20,9 +20,7 @@ all_splits = text_splitter.split_documents(data)
|
||||
|
||||
# Add to vectorDB
|
||||
vectorstore = LanceDB.from_documents(documents=all_splits,
|
||||
collection_name="rag-chroma",
|
||||
embedding=OpenAIEmbeddings(),
|
||||
)
|
||||
embedding=OpenAIEmbeddings())
|
||||
retriever = vectorstore.as_retriever()
|
||||
"""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user