{"id":23835323,"url":"https://github.com/amirespahbodi/qa_site","last_synced_at":"2026-05-08T09:31:49.912Z","repository":{"id":244903299,"uuid":"815877142","full_name":"AmirEspahbodi/QA_site","owner":"AmirEspahbodi","description":"api that you send a text to server and asks some question on that text, written in python/fastapi","archived":false,"fork":false,"pushed_at":"2024-09-19T19:01:04.000Z","size":114,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-23T20:38:27.076Z","etag":null,"topics":["fastapi","langchain","langchain-python","python"],"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/AmirEspahbodi.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":"2024-06-16T11:55:29.000Z","updated_at":"2024-09-19T19:01:07.000Z","dependencies_parsed_at":"2024-06-18T07:25:19.059Z","dependency_job_id":"172d1528-5bac-4570-8c58-fabda88c92c7","html_url":"https://github.com/AmirEspahbodi/QA_site","commit_stats":null,"previous_names":["amirespahbodi/qa_site"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AmirEspahbodi/QA_site","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmirEspahbodi%2FQA_site","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmirEspahbodi%2FQA_site/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmirEspahbodi%2FQA_site/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmirEspahbodi%2FQA_site/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AmirEspahbodi","download_url":"https://codeload.github.com/AmirEspahbodi/QA_site/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmirEspahbodi%2FQA_site/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32774722,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"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":["fastapi","langchain","langchain-python","python"],"created_at":"2025-01-02T15:47:57.889Z","updated_at":"2026-05-08T09:31:49.861Z","avatar_url":"https://github.com/AmirEspahbodi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Question-Answer Website\n\nThis project is a fully functional question-answer web application that allows users to upload a file and ask questions about its contents. The system processes the file, extracts the text, and enables users to query the text for specific information.\n\n## How to run sever\n```bash\ngit clone https://github.com/your-username/question-answer-website.git\ncd question-answer-website\npoetry install\npoetry run python main.py\n```\n\n## Features\n\n- **File Upload:** Users can upload various document formats.\n- **Natural Language Processing:** The system processes uploaded documents and answers user questions based on the content of the file.\n- **Asynchronous Web Server:** FastAPI provides a fast, asynchronous backend to handle file uploads and question-answer logic.\n- **ChromaDB:** Used to store and index text for efficient querying.\n- **Document Parsing:** Utilizes PyPDF to handle PDF files and Python-magic to identify file types.\n- **Language Processing:** Leverages LangChain and NLTK for NLP capabilities.\n\n## Technology Stack\n\n- **FastAPI:** Provides the web framework for handling requests and delivering responses asynchronously.\n- **LangChain:** Chains together different language models to help answer complex queries.\n- **ChromaDB:** Efficient vector database for text indexing and retrieval.\n- **PyPDF:** Handles the parsing and extraction of text from PDF files.\n- **Python-magic:** Identifies file types for proper handling.\n- **NLTK:** Aids in text tokenization and processing for natural language queries.\n\n## How It Works\n- **Upload a File**: Users upload a file through the frontend interface.\n- **File Parsing**: The backend parses the file to extract the text using PyPDF or another parser based on the file type identified by Python-magic.\n- **Text Storage**: The extracted text is stored in ChromaDB, allowing for fast, efficient searches.\n- **Ask a Question**: Users can ask questions related to the content of the uploaded file.\n- **Answer Generation**: LangChain processes the user's query using NLP techniques, returning the most relevant answer from the document.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famirespahbodi%2Fqa_site","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famirespahbodi%2Fqa_site","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famirespahbodi%2Fqa_site/lists"}