tutorials-langchain's People
Forkers
tomslatt84 seansoreilly jackycnhk jgreis23 vkrtsind caramelos annias tonikiri techthiyanes chuckwilliams10 dawgsby90 tungle1411 mang-lin cyebukayire engom aminrezagh giannisanni tan2line kashif-raza6 terry6394 svorotilo yasermarey algazaras timyklam ethanhyw blackwhites jc-ibm yqli2420 sudhanshu-shukla-git emanuelecannizzaro khantmgmg glaceage urban-art kp-forks abekam paulie7 cvictorr2508 free-radical linuslangner canslove bedy-kharisma janduplessis883 joepoptiya fresno777 tonkatsu7 chinmaybh natelasko528 aaronkhawkins nvnforever jmwdpk kkongji0305 camclaborn armacintosh xzhang8g lanchuhuong dimitrowdimitur georggr nrohatgi willjian suacalis n-h00 jorgeseifert heidihello stephen-ouzounis rahulraj80 tententgc ck-llm-study rhm2k fcam77 amanda-cw sinhag iamgrewal yosshi-git rshu pappagallos elnegmelnegm tetsumote abenzer037 orga-devwtf janevin naveedafzal ajeeto pandyaved98 heungky hendrikmax andresveraf stephanrempel buggiecoder lifebringer yanxg cicorias zubryan acholonu gerard-nus gerardchung guptdivya0212 cxl086 advikpatil tathagatasharma mamoudousow098tutorials-langchain's Issues
error:from langchain.indexes import VectorstoreIndexCreator index = VectorstoreIndexCreator().from_loaders([loader])
FileNotFoundError Traceback (most recent call last)
in
1 from langchain.indexes import VectorstoreIndexCreator
----> 2 index = VectorstoreIndexCreator().from_loaders([loader])
1 frames
/usr/local/lib/python3.9/dist-packages/langchain/document_loaders/text.py in load(self)
15 def load(self) -> List[Document]:
16 """Load from file path."""
---> 17 with open(self.file_path) as f:
18 text = f.read()
19 metadata = {"source": self.file_path}
FileNotFoundError: [Errno 2] No such file or directory: 'state_of_the_union.txt'
Chat interface is failing in notebook "L6-Chat.ipynb" of GitHub project "LangChain-Chat-with-Your-Data"
Hi Sophia,
Chat interface is failing with the below ERROR in L6-Chat.ipynb of GitHub project LangChain-Chat-with-Your-Data when I try to enter the text in the textbox. Is there any known issue. I am running it on Visual Studio Code with python 3.10 kernel.
Is there any known issue? Kindly guide when you get a chance
2024-01-27 15:34:33,579 ERROR: panel.reactive - Callback failed for object named "" changing property {'value': 'ma'}
Traceback (most recent call last):
File "/Users/raj/LangChain/LangChain-Chat-with-Your-Data/.venv/lib/python3.10/site-packages/panel/reactive.py", line 385, in process_events
self.param.update(**self_events)
File "/Users/raj/LangChain/LangChain-Chat-with-Your-Data/.venv/lib/python3.10/site-packages/param/parameterized.py", line 2278, in update
restore = self._update(*args, **kwargs)
File "/Users/raj/LangChain/LangChain-Chat-with-Your-Data/.venv/lib/python3.10/site-packages/param/parameterized.py", line 2318, in update
self._batch_call_watchers()
File "/Users/raj/LangChain/LangChain-Chat-with-Your-Data/.venv/lib/python3.10/site-packages/param/parameterized.py", line 2509, in batch_call_watchers
self._execute_watcher(watcher, events)
File "/Users/raj/LangChain/LangChain-Chat-with-Your-Data/.venv/lib/python3.10/site-packages/param/parameterized.py", line 2471, in _execute_watcher
watcher.fn(*args, **kwargs)
File "/Users/raj/LangChain/LangChain-Chat-with-Your-Data/.venv/lib/python3.10/site-packages/panel/param.py", line 865, in _replace_pane
new_object = self.eval(self.object)
File "/Users/raj/LangChain/LangChain-Chat-with-Your-Data/.venv/lib/python3.10/site-packages/panel/param.py", line 824, in eval
return eval_function_with_deps(function)
File "/Users/raj/LangChain/LangChain-Chat-with-Your-Data/.venv/lib/python3.10/site-packages/param/parameterized.py", line 162, in eval_function_with_deps
return function(*args, **kwargs)
File "/Users/raj/LangChain/LangChain-Chat-with-Your-Data/.venv/lib/python3.10/site-packages/param/depends.py", line 41, in _depends
return func(*args, **kw)
File "/Users/raj/LangChain/LangChain-Chat-with-Your-Data/.venv/lib/python3.10/site-packages/param/reactive.py", line 431, in wrapped
return eval_fn()(*combined_args, **combined_kwargs)
File "/var/folders/vd/0l359syn6_95hybswld2__6m0000gn/T/ipykernel_66274/3917387454.py", line 31, in convchain
result = self.qa({"question": query, "chat_history": self.chat_history})
File "/Users/raj/LangChain/LangChain-Chat-with-Your-Data/.venv/lib/python3.10/site-packages/langchain_core/_api/deprecation.py", line 145, in warning_emitting_wrapper
return wrapped(*args, **kwargs)
File "/Users/raj/LangChain/LangChain-Chat-with-Your-Data/.venv/lib/python3.10/site-packages/langchain/chains/base.py", line 363, in call
return self.invoke(
File "/Users/raj/LangChain/LangChain-Chat-with-Your-Data/.venv/lib/python3.10/site-packages/langchain/chains/base.py", line 162, in invoke
raise e
File "/Users/raj/LangChain/LangChain-Chat-with-Your-Data/.venv/lib/python3.10/site-packages/langchain/chains/base.py", line 156, in invoke
self._call(inputs, run_manager=run_manager)
File "/Users/raj/LangChain/LangChain-Chat-with-Your-Data/.venv/lib/python3.10/site-packages/langchain/chains/conversational_retrieval/base.py", line 155, in _call
docs = self._get_docs(new_question, inputs, run_manager=_run_manager)
File "/Users/raj/LangChain/LangChain-Chat-with-Your-Data/.venv/lib/python3.10/site-packages/langchain/chains/conversational_retrieval/base.py", line 317, in _get_docs
docs = self.retriever.get_relevant_documents(
File "/Users/raj/LangChain/LangChain-Chat-with-Your-Data/.venv/lib/python3.10/site-packages/langchain_core/retrievers.py", line 224, in get_relevant_documents
raise e
File "/Users/raj/LangChain/LangChain-Chat-with-Your-Data/.venv/lib/python3.10/site-packages/langchain_core/retrievers.py", line 217, in get_relevant_documents
result = self._get_relevant_documents(
File "/Users/raj/LangChain/LangChain-Chat-with-Your-Data/.venv/lib/python3.10/site-packages/langchain_core/vectorstores.py", line 654, in _get_relevant_documents
docs = self.vectorstore.similarity_search(query, **self.search_kwargs)
File "/Users/raj/LangChain/LangChain-Chat-with-Your-Data/.venv/lib/python3.10/site-packages/langchain_community/vectorstores/docarray/base.py", line 127, in similarity_search
results = self.similarity_search_with_score(query, k=k, **kwargs)
File "/Users/raj/LangChain/LangChain-Chat-with-Your-Data/.venv/lib/python3.10/site-packages/langchain_community/vectorstores/docarray/base.py", line 106, in similarity_search_with_score
query_doc = self.doc_cls(embedding=query_embedding) # type: ignore
File "/Users/raj/LangChain/LangChain-Chat-with-Your-Data/.venv/lib/python3.10/site-packages/pydantic/main.py", line 164, in init
pydantic_self.pydantic_validator.validate_python(data, self_instance=pydantic_self)
pydantic_core._pydantic_core.ValidationError: 2 validation errors for DocArrayDoc
text
Field required [type=missing, input_value={'embedding': [0.00224283... -0.019256253392706965]}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.5/v/missing
metadata
Field required [type=missing, input_value={'embedding': [0.00224283... -0.019256253392706965]}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.5/v/missing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.