{"id":24300896,"url":"https://github.com/lambda-science/dnd-qa","last_synced_at":"2025-10-03T15:30:04.291Z","repository":{"id":219906372,"uuid":"612318251","full_name":"lambda-science/dnd-qa","owner":"lambda-science","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-30T08:51:53.000Z","size":5181,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-02T12:48:47.946Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/lambda-science.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}},"created_at":"2023-03-10T17:12:10.000Z","updated_at":"2023-03-10T17:12:19.000Z","dependencies_parsed_at":"2024-01-30T09:56:00.481Z","dependency_job_id":null,"html_url":"https://github.com/lambda-science/dnd-qa","commit_stats":null,"previous_names":["lambda-science/dnd-qa"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambda-science%2Fdnd-qa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambda-science%2Fdnd-qa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambda-science%2Fdnd-qa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambda-science%2Fdnd-qa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lambda-science","download_url":"https://codeload.github.com/lambda-science/dnd-qa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242213930,"owners_count":20090701,"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","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-01-16T23:18:16.167Z","updated_at":"2025-10-03T15:29:59.247Z","avatar_url":"https://github.com/lambda-science.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🗡️D\u0026D Spell QA Bot🗡️\n\nThis is a chatbot that can answer questions about **Dungeon and Dragons spells** based on this [database](https://www.aidedd.org/dnd-filters/spells-5e.php) and built with LangChain and OpenAI API. Usefull to find informations quickly instead of browsing through 50 pages of PDF.\nThe creator of this bot is **[Corentin Meyer (@corentinm_py)](https://twitter.com/corentinm_py)**.  \n💪 This bot it based on Notion Question-Answering demo from [LangChain](https://github.com/hwchase17/langchain)\n\n# 🌲 Environment Setup\n\nIn order to set your environment up to run the code here, first install all requirements and then launch streamlit app:\n\n```shell\npython -m venv .venv\nsource .venv/bin/activate\npip install -r requirements.txt\nstreamlit run main.py\n```\n\nThen set your OpenAI API key (if you don't have one, get one [here](https://beta.openai.com/playground))\n\n```shell\nexport OPENAI_API_KEY=....\n```\n\n## 🚀 Code to deploy on StreamLit\n\nThe code to run the StreamLit app is in `main.py`.\nNote that when setting up your StreamLit app you should make sure to add `OPENAI_API_KEY` as a secret environment variable.\n\n## 🧑 Reproduce the embedding and stuff\n\nRun the following command to ingest the data.\n\n```shell\npython ingest.py\n```\n\nBoom! Now you're done, and you can ask it questions like:\n\n```shell\npython qa.py \"What's the size of tsunami spell ?\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flambda-science%2Fdnd-qa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flambda-science%2Fdnd-qa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flambda-science%2Fdnd-qa/lists"}