GithubHelp home page GithubHelp logo

mirabdullahyaser / retrieval-augmented-generation-engine-with-langchain-and-streamlit Goto Github PK

View Code? Open in Web Editor NEW
89.0 3.0 47.0 11.55 MB

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 ideal for efficient document retrieval and summarization.

Home Page: https://retrieval-augmented-generation.streamlit.app/

Python 100.00%
artificial-intelligence chat-application document-analysis generative-ai langchain large-language-models natural-language-processing openai-chatgpt question-answering retrieval-augmented-generation

retrieval-augmented-generation-engine-with-langchain-and-streamlit's People

Contributors

mirabdullahyaser avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

retrieval-augmented-generation-engine-with-langchain-and-streamlit's Issues

AttributeError: st.session_state has no attribute "retriever".

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()
File "/home/devsecops/projects/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/devsecops/projects/Retrieval-Augmented-Generation-Engine-with-LangChain-and-Streamlit/.venv/lib/python3.10/site-packages/streamlit/runtime/state/session_state_proxy.py", line 121, in getattr
raise AttributeError(_missing_attr_error_message(key))

input key issue

截圖 2024-03-03 下午4 11 28

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 getattr
raise AttributeError(_missing_attr_error_message(key))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.