{"id":19724353,"url":"https://github.com/atakang7/robotixe","last_synced_at":"2026-02-05T21:01:39.492Z","repository":{"id":182721942,"uuid":"668670315","full_name":"atakang7/robotiXe","owner":"atakang7","description":"Transform your documents into interactive Q\u0026A sessions. Generate insightful questions directly from your content and get answers on the fly!","archived":false,"fork":false,"pushed_at":"2024-11-25T22:20:21.000Z","size":322,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-22T00:33:11.441Z","etag":null,"topics":["chatbot","langchain","openai","python"],"latest_commit_sha":null,"homepage":"https://smartpdf.onrender.com/","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/atakang7.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":"2023-07-20T10:38:50.000Z","updated_at":"2024-11-25T22:20:25.000Z","dependencies_parsed_at":"2023-10-03T01:40:15.346Z","dependency_job_id":"9f368996-0a7f-404c-a332-a4fcc630a132","html_url":"https://github.com/atakang7/robotiXe","commit_stats":null,"previous_names":["atakang7/langchain-qa","atakang7/robotixe"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/atakang7/robotiXe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atakang7%2FrobotiXe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atakang7%2FrobotiXe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atakang7%2FrobotiXe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atakang7%2FrobotiXe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atakang7","download_url":"https://codeload.github.com/atakang7/robotiXe/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atakang7%2FrobotiXe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29134210,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T20:50:26.975Z","status":"ssl_error","status_checked_at":"2026-02-05T20:49:26.082Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["chatbot","langchain","openai","python"],"created_at":"2024-11-11T23:25:35.232Z","updated_at":"2026-02-05T21:01:39.446Z","avatar_url":"https://github.com/atakang7.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PDF Question-Answer \u0026 Question Generation with Langchain\r\nThis project provides a powerful chatbot that allows users to interact with their PDF documents by asking questions and receiving accurate answers. Additionally, it can generate relevant questions from the content of the PDFs. This chatbot can be easily integrated into Python-based frameworks like Flask.\r\n\r\n[![Live Demo](https://img.shields.io/badge/demo-live-brightgreen)](https://smartpdf.onrender.com/)\r\n\r\nhttps://github.com/user-attachments/assets/5f4c47cd-9ee3-4670-8b47-dc46607524c3\r\n\r\n\r\n## 🌟 Key Features\r\n\r\n- **Interactive Q\u0026A**: Chat with your documents\r\n- **Automatic Question Generation**: Create quizzes.\r\n- **Smart Context Retrieval**: Get accurate answers\r\n- **Easy Integration**: Python frameworks like Flask\r\n\r\n## 🛠️ Under the Hood\r\n\r\n### Question Generation\r\n\r\n1. **Prompt Engineering**: Prompt to guide the AI.\r\n2. **LLM Integration**: Leverage OpenAI's GPT models.\r\n3. **Context Chunking**: Efficiently process.\r\n\r\n### Document Chat\r\n\r\n1. **Embeddings**: Vector representations\r\n2. **Semantic Search**: Relevant context\r\n3. **Conversational Memory**: Chat session\r\n4. **Focused Responses**: Strictly based on document content\r\n  \r\n---\r\nLet's start talking about what we expect from these conversation bots. We don't want them to give non-sense, unrelated answers. To avoid that we can either use prompts or conversation chains. In this case, we will be using chains. \r\n\r\n# Commitment To The Document\r\n- **I gave this text which was in the document.**\r\n![d](https://github.com/AtakanG7/langchain-qa/assets/115896304/e28b83e2-977d-4dda-a381-aa3ad67ac72f)\r\n![c](https://github.com/AtakanG7/langchain-qa/assets/115896304/ac0214bd-ca98-40c6-bb75-e452fe140bff)\r\n- **This doesnt entirely proves that only answers from the document so I had to be sure and I asked one more question.**\r\n![b](https://github.com/AtakanG7/langchain-qa/assets/115896304/d4a0148a-579a-4f96-9617-309c4d653d31)\r\n![a](https://github.com/AtakanG7/langchain-qa/assets/115896304/cae436b9-babe-46a5-9e96-5c92ea9f1399)\r\n- **Overall, I'm convinced that this set-up only answers from the document.**\r\n- **Whenever I ask non-sense question. It says ***\"I don't know\"*** which is what we expect.**\r\n![Screenshot 2023-07-21 064108](https://github.com/AtakanG7/langchain-qa/assets/115896304/cff8353f-254f-4f97-bfdf-e02755b9bfc4)\r\n![Screenshot 2023-07-21 064125](https://github.com/AtakanG7/langchain-qa/assets/115896304/8cdbe5b2-f4e2-4949-a0b0-da4d8a2480ed)\r\n\r\n# How To Run On Local Systems\r\n```python\r\n    git clone https://github.com/AtakanG7/robotiXe.git\r\n```\r\n\r\nCreate virtual envirement (required!) Trust me :)\r\n```python\r\n    python -m venv your_env_name\r\n```\r\nNow, the envirement is supposed to be added to your directory. You need to activate it. \r\n\r\n```python\r\n    .your_env_name\\Scripts\\activate\r\n```\r\nCongratulations, you are half way there. Now install the dependencies.\r\n\r\n```python\r\n    pip install -r requirements.txt\r\n```\r\nThis will take some time.\r\nAfter all things set up, you need to run the project\r\n\r\n```python\r\n    streamlit run main.py\r\n```\r\n\r\n### Dependencies\r\n* langchain\r\n* openai\r\n* PyPDF2 \r\n* streamlit  \r\n* InstructorEmbedding \r\n* sentence_transformers \r\n* faiss-cpu\r\n* \r\n# Conclution\r\n\r\n* If you have any questions you can e-mail me pwxcv7352@gmail.com 😊👋\r\n* Good Luck!\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatakang7%2Frobotixe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatakang7%2Frobotixe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatakang7%2Frobotixe/lists"}