{"id":20895402,"url":"https://github.com/gopikrsmscs/chat-with-document-rag","last_synced_at":"2026-05-08T05:45:37.489Z","repository":{"id":257801856,"uuid":"848439082","full_name":"gopikrsmscs/chat-with-document-rag","owner":"gopikrsmscs","description":"Retrieval Augment Generation, Chat with your document using lang chain and open ai.","archived":false,"fork":false,"pushed_at":"2024-09-04T05:11:43.000Z","size":6403,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-19T12:16:13.491Z","etag":null,"topics":["chatbot","langchain","openai-api","retreival-augmented-generation","streamlit"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gopikrsmscs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-27T19:00:40.000Z","updated_at":"2024-09-20T15:40:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"530bcd4f-d403-41ed-9d7d-6dcf8b73004f","html_url":"https://github.com/gopikrsmscs/chat-with-document-rag","commit_stats":null,"previous_names":["pavulurig/chat-with-document-rag","gopikrsmscs/chat-with-document-rag"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gopikrsmscs%2Fchat-with-document-rag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gopikrsmscs%2Fchat-with-document-rag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gopikrsmscs%2Fchat-with-document-rag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gopikrsmscs%2Fchat-with-document-rag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gopikrsmscs","download_url":"https://codeload.github.com/gopikrsmscs/chat-with-document-rag/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243279845,"owners_count":20265903,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatbot","langchain","openai-api","retreival-augmented-generation","streamlit"],"created_at":"2024-11-18T10:28:44.688Z","updated_at":"2025-12-27T08:34:33.095Z","avatar_url":"https://github.com/gopikrsmscs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chat with the Document (RAG): Attention is All You Need, Transformer\nThis project provides an interactive interface to chat with documents using a Retrieval-Augmented Generation (RAG) approach. It uses the \"Attention is All You Need\" Transformer paper as a primary document, Chroma for vector storage, and OpenAI's language model for chat responses. The application is built using Streamlit to provide an easy-to-use chat interface.\n\n# Project Structure\n\n- retrieval_augment_generation_chat.py: The main application file that sets up the Streamlit interface and handles the chat logic.\n- document_indexing.ipynb: A Jupyter Notebook responsible for loading, splitting, and creating embeddings from the document.\n- Transformer.pdf: The primary document used for the chat context.\n- chromadb: Directory where the Chroma vector store persists the document embeddings.\n\n# Requirements\n\n- Python 3.8 or higher\n- Streamlit\n- LangChain\n- OpenAI's API key\n- Chroma\n- PyPDFLoader\n\n# Installation\n\n- Clone the repository:\n```bash\ngit clone git@github.com:gopikrsmscs/chat-with-document-rag.git\n\ncd chat-with-document-rag\n```\n- Install the required dependencies:\n```bash\npip install streamlit langchain chromadb PyPDFLoader openai\n```\n- Set up your OpenAI API key: Export your API key to the environment variable:\n```bash\nexport OPENAI_API_KEY='your_openai_api_key'\n```\n![Chat Interface Output](/chat_interface.png)\n\n# Features\n- Document Interaction: Chat with the content of the Transformer paper using a retrieval-augmented generation approach.\n- Contextual Responses: The model generates responses based on specific document sections, ensuring answers are relevant.\n- Streamlit Interface: Basic interface to type queries and see responses.\n\n# License\nThis project is licensed under the MIT License. See the LICENSE file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgopikrsmscs%2Fchat-with-document-rag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgopikrsmscs%2Fchat-with-document-rag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgopikrsmscs%2Fchat-with-document-rag/lists"}