{"id":15063717,"url":"https://github.com/bhargav0807/chatwithcsvs","last_synced_at":"2026-02-20T18:06:30.465Z","repository":{"id":256224557,"uuid":"854656110","full_name":"bhargav0807/ChatWithCSVs","owner":"bhargav0807","description":"A simple application to query and interact with multiple CSVs.","archived":false,"fork":false,"pushed_at":"2024-09-09T15:56:05.000Z","size":177,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-20T00:39:05.964Z","etag":null,"topics":["langchain-agent","langchain-python","openai","pandas","streamlit"],"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/bhargav0807.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-09-09T14:55:12.000Z","updated_at":"2025-01-27T14:35:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"9fdbfe25-188c-4f9c-a0d1-532b0b7f2cd8","html_url":"https://github.com/bhargav0807/ChatWithCSVs","commit_stats":null,"previous_names":["bhargav0807/chatwithcsvs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bhargav0807/ChatWithCSVs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhargav0807%2FChatWithCSVs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhargav0807%2FChatWithCSVs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhargav0807%2FChatWithCSVs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhargav0807%2FChatWithCSVs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bhargav0807","download_url":"https://codeload.github.com/bhargav0807/ChatWithCSVs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhargav0807%2FChatWithCSVs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267899883,"owners_count":24163001,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["langchain-agent","langchain-python","openai","pandas","streamlit"],"created_at":"2024-09-25T00:06:28.947Z","updated_at":"2025-10-19T06:01:35.513Z","avatar_url":"https://github.com/bhargav0807.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSV Chat App: Interact with Your CSV Data\n\nThe **CSV Chat App** allows users to upload one or more CSV files, view a sample of the data, and ask questions about the data using natural language. The app uses the **LangChain** framework and **OpenAI's GPT** model to provide intelligent answers based on the uploaded data.\n![File Upload](images/home.png)\n\n## Features\n\n- **File Upload**: Users can upload multiple CSV files at once.\n- **Data Preview**: Displays a sample (first five rows) of each uploaded CSV file.\n- **Question Interface**: Users can ask questions about the data, and the app uses AI to provide insights or answers.\n- **LangChain Agent**: A powerful agent is created to interact with the uploaded CSVs using OpenAI's GPT model.\n  ![File Upload](images/fileui.png)\n\n## Installation\n\n1. **Clone the Repository**\n\n    ```bash\n    git clone https://github.com/bhargav0807/ChatWithCSVs.git\n    cd ChatWithCSVs\n    ```\n\n2. **Create a Virtual Environment**\n\n    It's recommended to create a virtual environment to isolate your dependencies.\n\n    ```bash\n    python3 -m venv venv\n    source venv/bin/activate  # On Windows use `venv\\Scripts\\activate`\n    ```\n\n3. **Install the Required Packages**\n\n    Install the dependencies listed in the `requirements.txt` file.\n\n    ```bash\n    pip install -r requirements.txt\n    ```\n\n4. **Set Up Environment Variables**\n\n    Create a `.env` file in the project root and add your OpenAI API key.\n\n    Example `.env` file:\n\n    ```env\n    OPENAI_API_KEY=your_openai_api_key\n    ```\n\n## Usage\n\n1. **Start the Streamlit App**\n\n    Use the following command to start the Streamlit app locally:\n\n    ```bash\n    streamlit run app.py\n    ```\n\n    This will launch the app on `http://localhost:8501`.\n\n2. **Uploading CSV Files**\n\n    - After launching the app, you can upload one or more CSV files using the file uploader.\n    - Once a CSV is uploaded, a sample of the data (first five rows) will be displayed.\n\n3. **Asking Questions**\n\n    - You can ask questions about the uploaded data in the text box.\n    - The LangChain agent, powered by OpenAI's GPT, will process your question and return an answer based on the data.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbhargav0807%2Fchatwithcsvs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbhargav0807%2Fchatwithcsvs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbhargav0807%2Fchatwithcsvs/lists"}