{"id":26522392,"url":"https://github.com/sofiasawczenko/chatbot_rag_langchain_openai","last_synced_at":"2026-04-29T20:34:14.003Z","repository":{"id":283545870,"uuid":"952122719","full_name":"sofiasawczenko/chatbot_rag_langchain_openai","owner":"sofiasawczenko","description":"This is a basic console project for creating chatbots with RAG using LangChain and OpenAI's language model. In this project, you can save PDFs in a folder and have the chatbot respond with information extracted from them.","archived":false,"fork":false,"pushed_at":"2025-03-20T19:27:55.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-10T01:33:58.152Z","etag":null,"topics":["langchain","openai","python","rag"],"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/sofiasawczenko.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-03-20T19:11:25.000Z","updated_at":"2025-03-20T19:27:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"1eaa94c5-87cb-4eac-b583-b2c07d5ebeef","html_url":"https://github.com/sofiasawczenko/chatbot_rag_langchain_openai","commit_stats":null,"previous_names":["sofiasawczenko/chatbot_rag_langchain_openai"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sofiasawczenko/chatbot_rag_langchain_openai","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofiasawczenko%2Fchatbot_rag_langchain_openai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofiasawczenko%2Fchatbot_rag_langchain_openai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofiasawczenko%2Fchatbot_rag_langchain_openai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofiasawczenko%2Fchatbot_rag_langchain_openai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sofiasawczenko","download_url":"https://codeload.github.com/sofiasawczenko/chatbot_rag_langchain_openai/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofiasawczenko%2Fchatbot_rag_langchain_openai/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32443562,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T20:22:27.477Z","status":"ssl_error","status_checked_at":"2026-04-29T20:22:26.507Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","openai","python","rag"],"created_at":"2025-03-21T13:26:52.589Z","updated_at":"2026-04-29T20:34:13.995Z","avatar_url":"https://github.com/sofiasawczenko.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chatbot with RAG using LangChain and OpenAI\r\n\r\nThis is a basic console project for creating chatbots with RAG using **LangChain** and OpenAI's **language model**. You can save **PDFs** in a folder and have the chatbot respond with information extracted from them.\r\n\r\n## 1. Prerequisites\r\n\r\nEnsure you have the following installed:\r\n\r\n- **Python 3.12.5**\r\n- **Git** (optional) for cloning repositories and managing the code\r\n\r\n## 2. Environment Setup\r\n\r\n### Clone the repository or extract the project\r\nIf you received the project as a **ZIP file**, extract it to a directory of your choice.\r\n\r\n## 3. Installing Dependencies\r\n\r\nWith the virtual environment activated, install the required dependencies:\r\n\r\n```bash\r\npip install -r requirements.txt\r\n```\r\n\r\n## 4. Project Configuration\r\nSet up environment variables in the .env file as needed. This file should contain necessary variables such as API keys, directory paths, etc.\r\n\r\nGet an API Key on OpenAI website https://platform.openai.com/docs/overview\r\n\r\n## 5. Running the Project\r\nTo run the project, execute the main script:\r\n\r\n```bash\r\npython src/main.py\r\n```\r\n\r\n## 6. File \u0026 Folder Structure\r\n\r\n```bash\r\nchatbot_rag_langchain/\r\n ├── src/\r\n │   ├── chatbot.py          # Contains chatbot logic\r\n │   ├── main.py             # Main entry point of the project\r\n │   ├── rag_pipeline.py     # Handles the RAG (Retrieval-Augmented Generation) pipeline\r\n ├── config/\r\n │   ├── config.py           # Configuration settings for the project\r\n ├── data/\r\n │   ├── pdfs/               # Directory where PDFs are stored for analysis or retrieval\r\n ├── requirements.txt        # Dependencies required for the project\r\n ├── .env                    # Environment variables (API keys, paths, etc.)                 \r\n```\r\nNow you're ready to build, test, and enhance this chatbot.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsofiasawczenko%2Fchatbot_rag_langchain_openai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsofiasawczenko%2Fchatbot_rag_langchain_openai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsofiasawczenko%2Fchatbot_rag_langchain_openai/lists"}