{"id":37071079,"url":"https://github.com/1rsh/qa-genie","last_synced_at":"2026-01-14T08:17:56.966Z","repository":{"id":219328242,"uuid":"748695399","full_name":"1rsh/qa-genie","owner":"1rsh","description":"This is a package for generating questions and answers from unstructured data to be used for NLP tasks.","archived":false,"fork":false,"pushed_at":"2024-02-01T16:37:31.000Z","size":70,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-25T06:26:21.896Z","etag":null,"topics":["llm-finetuning","question-answering","question-generation","question-generator"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/qa-genie/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/1rsh.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}},"created_at":"2024-01-26T15:07:05.000Z","updated_at":"2024-03-05T23:26:10.000Z","dependencies_parsed_at":"2024-01-26T19:30:54.154Z","dependency_job_id":"6e9e8ba9-cd34-407c-94b5-a830e693390d","html_url":"https://github.com/1rsh/qa-genie","commit_stats":null,"previous_names":["1rsh/qa-genie"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/1rsh/qa-genie","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1rsh%2Fqa-genie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1rsh%2Fqa-genie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1rsh%2Fqa-genie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1rsh%2Fqa-genie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1rsh","download_url":"https://codeload.github.com/1rsh/qa-genie/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1rsh%2Fqa-genie/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28413748,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"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":["llm-finetuning","question-answering","question-generation","question-generator"],"created_at":"2026-01-14T08:17:56.406Z","updated_at":"2026-01-14T08:17:56.960Z","avatar_url":"https://github.com/1rsh.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QA Genie\n\nEnglish | [हिंदी](README_hi.md) \n\nQA Genie is a Python package designed for generating questions and answers from unstructured data.\n\nThis package is built using the unofficial API of HuggingChat: [hugchat](https://pypi.org/project/hugchat/). It leverages HuggingChat's capabilities for question and answer generation.\n\n\n[![PyPi](https://img.shields.io/pypi/v/qa_genie.svg?logo=pypi\u0026logoColor=white)](https://pypi.python.org/pypi/qa_genie)\n[![Support_Platform](https://img.shields.io/badge/3.9+-%234ea94b.svg?logo=python\u0026logoColor=white)](https://pypi.python.org/pypi/qa_genie)\n[![Status](https://img.shields.io/badge/status-operational-%234ea94b.svg?logo=ok\u0026logoColor=white)](https://pypi.python.org/pypi/qa_genie)\n[![Downloads](https://static.pepy.tech/badge/qa_genie?logo=download\u0026logoColor=white)](https://www.pepy.tech/projects/qa_genie)\n\n\u003e **Note**\n\u003e\n\u003e This package is in its alpha release and more functionality will be added soon! \u003cbr\u003e\n\u003e **Update 1.0.0a3:** This update enables the user to adjust iteration time. (Solves #1) \u003cbr\u003e\n\u003e **Update 1.0.0a4:** Enables user to get raw text output from chatbot for manual cleaning. Also fixes bugs in cleaning.\n\n\n## Installation\n```bash\npip install qa_genie\n```\nor\n```bash\npip3 install qa_genie\n```\n\n\n## Usage\n```python\nemail = \"your_email@example.com\" # huggingface account email\npassword = \"your_password\" # huggingface account password\nmodel = \"meta\" # use \"meta\" to use meta-llama/Llama-2-70b-chat-hf or \"oasst\" to use OpenAssistant/oasst-sft-6-llama-30b\n\n# Initialize chatbot\nchatbot = get_generator(email, password, model)\n\n# Example usage with a single text\ntext = \"Lorem ipsum dolor sit amet, consectetur adipiscing elit.\"\nresult_single = extract_qa(chatbot, text, num_qn=3) # returns pandas.DataFrame with num_qn questions and answers\n\n# Example usage with multiple texts\ntexts = [\"Text 1\", \"Text 2\", \"Text 3\"]\nresult_multiple = extract_qas(chatbot, texts, num_qn_each=3) # return pandas.DataFrame with num_qn_each questions and answers generated for each text\n```\n\n## Important Note\nAs mentioned by [Soulter](github.com/Soulter), Server resources are precious, it is not recommended to request this API in a high frequency.\n\n## Contributing\nFeel free to contribute to QA Genie by creating issues, submitting pull requests, or suggesting improvements. Your contributions are highly appreciated :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1rsh%2Fqa-genie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1rsh%2Fqa-genie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1rsh%2Fqa-genie/lists"}