Retrieval-Augmented-Generation-Engine-with-LangChain-and-Streamlit icon indicating copy to clipboard operation
Retrieval-Augmented-Generation-Engine-with-LangChain-and-Streamlit copied to clipboard

Powerful web application that combines Streamlit, LangChain, and Pinecone to simplify document analysis. Powered by OpenAI's GPT-3, RAG enables dynamic, interactive document conversations, making it i...

Results 5 Retrieval-Augmented-Generation-Engine-with-LangChain-and-Streamlit issues
Sort by recently updated
recently updated
newest added

![Uploading 49aa48f8e74e3a3f69f01dcb87c3758.png…]() How can I solve it?

File "/home/adminuser/venv/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script exec(code, module.__dict__) File "/mount/src/retrieval-augmented-generation-engine-with-langchain-and-streamlit/rag_engine.py", line 137, in boot() File "/mount/src/retrieval-augmented-generation-engine-with-langchain-and-streamlit/rag_engine.py", line 132, in boot response = query_llm(st.session_state.retriever, query) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/adminuser/venv/lib/python3.11/site-packages/streamlit/runtime/state/session_state_proxy.py", line 121, in...

My pdfs are pretty standard all under 5mb but seem to get this error when generating embeddings

AttributeError: st.session_state has no attribute "retriever". Did you forget to initialize it? More info: https://docs.streamlit.io/library/advanced-features/session-state#initialization Traceback: File "/home/devsecops/projects/Retrieval-Augmented-Generation-Engine-with-LangChain-and-Streamlit/.venv/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script exec(code, module.__dict__) File "/home/devsecops/projects/Retrieval-Augmented-Generation-Engine-with-LangChain-and-Streamlit/rag_engine.py", line 137, in boot()...