{"id":20042500,"url":"https://github.com/code4mk/langchain-rag-application","last_synced_at":"2026-04-30T12:31:28.298Z","repository":{"id":251519166,"uuid":"837642633","full_name":"code4mk/langchain-rag-application","owner":"code4mk","description":"Generative ai RAG movie history ( chat and qa) with langchain, openai and pinecone","archived":false,"fork":false,"pushed_at":"2024-08-03T21:00:33.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-19T12:55:24.746Z","etag":null,"topics":["gen-ai","gradio","langchain","langchain-rag","openai","pinecone"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/code4mk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-03T15:23:04.000Z","updated_at":"2024-08-03T21:11:49.000Z","dependencies_parsed_at":"2024-08-03T17:25:50.494Z","dependency_job_id":"902ae1b3-0fa4-48d2-9162-5c6aeb10f717","html_url":"https://github.com/code4mk/langchain-rag-application","commit_stats":null,"previous_names":["code4mk/langchain-rag-movie-history"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code4mk%2Flangchain-rag-application","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code4mk%2Flangchain-rag-application/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code4mk%2Flangchain-rag-application/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code4mk%2Flangchain-rag-application/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/code4mk","download_url":"https://codeload.github.com/code4mk/langchain-rag-application/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241470402,"owners_count":19968041,"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":["gen-ai","gradio","langchain","langchain-rag","openai","pinecone"],"created_at":"2024-11-13T10:51:59.200Z","updated_at":"2026-04-30T12:31:23.278Z","avatar_url":"https://github.com/code4mk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RAG Application\n\nThis is a Retrieval-Augmented Generation (RAG) application using Langchain, OpenAI, and Pinecone for movie history.\n\n## Features\n- Chat\n- Question Answering (QA)\n\n## Setup\n\n1. **Create a virtual environment:**\n\n    ```bash\n    python -m venv venv\n    ```\n\n2. **Activate the virtual environment:**\n\n    - On Windows:\n        ```bash\n        venv\\Scripts\\activate\n        ```\n    - On macOS and Linux:\n        ```bash\n        source venv/bin/activate\n        ```\n\n3. **Install dependencies:**\n\n    ```bash\n    pip install -r requirements.txt\n    ```\n\n4. **Set up environment variables:**\n\n    Create a `.env` file in the root directory of your project and add the following variables:\n\n    ```plaintext\n    OPENAI_API_KEY=\"\"\n    PINECONE_API_KEY=\"\"\n    PINECONE_INDEX_NAME=\"movie-history\"\n    FEATURE_NAME=\"chat\" # \"qa\"\n    ```\n\n    -\u003e `FEATURE_NAME` will be `chat|qa` . diff is chat will preserve history\n\n## Load Data into Pinecone VectorDB\n\n1. **Load the data into Pinecone:**\n\n    ```bash\n    python ./src/vector_store/load_data.py\n    ```\n\n## Run the Project\n\n1. start project with gradio ui\n\n    ```bash\n    python app.py\n    ```\n\n* `127.0.0.1:7860`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode4mk%2Flangchain-rag-application","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode4mk%2Flangchain-rag-application","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode4mk%2Flangchain-rag-application/lists"}