{"id":31945141,"url":"https://github.com/genesisblock3301/restuarant_review_management","last_synced_at":"2025-10-14T10:50:15.752Z","repository":{"id":313300925,"uuid":"1049657455","full_name":"GenesisBlock3301/restuarant_review_management","owner":"GenesisBlock3301","description":"🍕 Restaurant Review \u0026 Weather Assistant (LangChain + Ollama + RAG) An AI-powered assistant that answers restaurant-related questions using realistic customer reviews (RAG) and provides live weather updates through integrated APIs. Built with LangChain’s ReAct agent, Ollama LLM, and FastAPI.","archived":false,"fork":false,"pushed_at":"2025-10-08T05:36:46.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-08T07:23:02.453Z","etag":null,"topics":[],"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/GenesisBlock3301.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-03T09:56:15.000Z","updated_at":"2025-10-08T05:36:50.000Z","dependencies_parsed_at":"2025-09-05T06:25:51.052Z","dependency_job_id":"7e98de46-511c-414d-8cc8-023d59dda7c0","html_url":"https://github.com/GenesisBlock3301/restuarant_review_management","commit_stats":null,"previous_names":["genesisblock3301/ai_agent_with_rag","genesisblock3301/restuarant_review_management"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GenesisBlock3301/restuarant_review_management","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenesisBlock3301%2Frestuarant_review_management","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenesisBlock3301%2Frestuarant_review_management/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenesisBlock3301%2Frestuarant_review_management/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenesisBlock3301%2Frestuarant_review_management/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GenesisBlock3301","download_url":"https://codeload.github.com/GenesisBlock3301/restuarant_review_management/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenesisBlock3301%2Frestuarant_review_management/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018798,"owners_count":26086453,"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-10-14T02:00:06.444Z","response_time":60,"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":[],"created_at":"2025-10-14T10:49:49.910Z","updated_at":"2025-10-14T10:50:15.743Z","avatar_url":"https://github.com/GenesisBlock3301.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"### 📘 **README.md**\n\n# 🍕 Restaurant Review \u0026 Weather Assistant\n\nAn **AI-powered interactive assistant** that can:\n- Answer questions about restaurants (food quality, service, pricing, etc.)\n- Retrieve and summarize real customer reviews using **RAG (Retrieval-Augmented Generation)**\n- Provide **live weather information** for any city via an integrated API\n- Combine both tools through a **LangChain ReAct agent** for reasoning and decision-making\n\n---\n\n## 🚀 Features\n\n- **LangChain ReAct Agent**: Combines reasoning with action to decide when to use tools.\n- **RAG Pipeline**: Fetches relevant restaurant reviews from a vector database.\n- **Weather Tool**: Retrieves real-time weather data via API.\n- **Local LLM Integration**: Runs on `Ollama (llama3.2)` for on-device inference.\n- **Interactive CLI Mode**: Chat directly with the assistant in your terminal.\n\n---\n\n## 🧠 Architecture\n\n```\nUser Input\n│\n▼\n[ LangChain ReAct Agent ]\n├── Tool 1 → Weather API (get_weather_info)\n├── Tool 2 → Restaurant RAG (ask_restaurant)\n▼\nLLM (Ollama Llama3.2)\n▼\nFinal Answer → Console Output\n\n````\n\n---\n\n## 🧩 Components Overview\n\n| File                                 | Description                                      |\n|--------------------------------------|--------------------------------------------------|\n| **main.py**                          | Core application \u0026 agent loop                    |\n| **vector.py**                        | Loads vector store and defines retriever for RAG |\n| **weather_api.py**                   | Fetches live weather data                        |\n| **realistic_restaurant_reviews.csv** | Dataset used for restaurant review retrieval     |\n| **requirements.txt**                 | Python dependencies                              |\n| **README.md**                        | Project documentation                            |\n\n---\n\n## ⚙️ Installation\n\n### Cone the Repository\n```bash\ngit clone https://github.com/GenesisBlock3301/restuarant_review_management.git\ncd restuarant_review_management\n````\n\n### Create and Activate a Virtual Environment\n\n```bash\npython -m venv venv\nsource venv/bin/activate     # For Linux/Mac\nvenv\\Scripts\\activate        # For Windows\n```\n\n### Install Dependencies\n\n```bash\npip install -r requirements.txt\n```\n\n### Run Ollama Locally\n\nEnsure you have [Ollama](https://ollama.ai/download) installed and running:\n\n```bash\nollama run llama3.2\n```\n\n---\n\n## ▶️ Run the Application\n\nSimply run:\n```bash\npython main.py\n```\n---\n## 💬 Example Interactions\n\n```\n🍕 Pizza Restaurant \u0026 Weather Assistant\nAsk me about restaurants or weather information!\nType 'q' or 'quit' to exit.\n\nAsk your question: What do people say about the pizza quality?\n\n🤔 Processing: What do people say about the pizza quality?\n✅ Final Answer:\nCustomers love the crispy crust and fresh toppings. Several reviews mention fast delivery and great taste.\n```\n\n---\n\n### 🌦️ Weather Example\n\n```\nAsk your question: What's the weather like in Dhaka today?\n\n🤔 Processing: What's the weather like in Dhaka today?\n✅ Final Answer:\nCurrently 31°C in Dhaka with light rain and 80% humidity.\n```\n\n---\n\n## 🧱 Project Structure\n\n```\n📂 restuarant_review_management\n ┣ 📜 main.py\n ┣ 📜 vector.py\n ┣ 📜 weather_api.py\n ┣ 📜 realistic_restaurant_reviews.csv\n ┣ 📜 requirements.txt\n ┗ 📜 README.md\n```\n\n---\n\n## 🧰 Tools \u0026 Technologies\n\n* **Python 3.10+**\n* **LangChain**\n* **Ollama Llama 3.2**\n* **Vector Store**\n* **Weather API**\n* **ReAct Agent Framework**\n\n---\n\n## 👨‍💻 Author\n\n**GenesisBlock3301**\n🌐 [GitHub Profile](https://github.com/GenesisBlock3301)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenesisblock3301%2Frestuarant_review_management","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgenesisblock3301%2Frestuarant_review_management","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenesisblock3301%2Frestuarant_review_management/lists"}