Skip to content

azizHakim/rag-chatapp

Repository files navigation

RAG chatapp for financial analysis

A financial assistant chatbot powered by Retrieval Augmented Generation (RAG) with Streamlit and ChatGPT, Selenium to answer queries regarding finance by scraping through the latest financial news articles.

Checkout the live version here (deployed on GCP with cloud build and cloud run). rag-chatapp demo

✔️ Installation and Runnning

  1. Get the repo:
    • git clone git@github.com:azizHakim/rag-chatapp.git
  2. cd into the root directory:
    • cd rag-chatapp
  3. Rename env.sample to .env:
    • mv env.sample .env
  4. Assign your openai api key to OPENAI_API_KEY variable inside .env
  5. (Optional) You can change the openai model by updating the OPENAI_MODEL, given that you have access to the model.
  6. (Optional) Also you can change the number of articles to be retrived by changing the value of MAX_ARTICLE_NUMBER, default is set to 3.
  7. Build the docker image:
    • docker build . -t chatapp
  8. Run the docker image:
    • docker run -p 8501:8501 chatapp
  9. Finally go to http://localhost:8501 to enjoy the app

⚙️ Tech stack

  • Streamlit==1.29.0
  • OpenAI API==1.6.1
  • LlamaIndex==0.9.26
  • Selenium==4.16.0
  • Docker

🔲 Future work

  1. Chunking documents before vectorizing for better better retrieval.
  2. Evaluate the retrieval performance.

©️ License

License

📫 How to reach me

Feel free to reach out to me on Twitter or LinkedIn for collaboration. Know more about me at azizhakim.github.io

Twitter Gmail LinkedIn

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published