{"id":24218362,"url":"https://github.com/siddhesh-agarwal/straindb-rag","last_synced_at":"2026-01-27T15:02:23.876Z","repository":{"id":230643817,"uuid":"779715175","full_name":"Siddhesh-Agarwal/straindb-rag","owner":"Siddhesh-Agarwal","description":"An RAG Model based on StrainsDB by Kenneth Reitz.","archived":false,"fork":false,"pushed_at":"2024-11-20T07:41:12.000Z","size":73335,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-04T20:51:25.930Z","etag":null,"topics":["langchain","openai","python","rag-model","streamlit"],"latest_commit_sha":null,"homepage":"https://straindb.streamlit.app/","language":"Jupyter Notebook","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/Siddhesh-Agarwal.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-03-30T15:20:58.000Z","updated_at":"2024-11-20T07:41:16.000Z","dependencies_parsed_at":"2024-05-04T13:38:47.344Z","dependency_job_id":null,"html_url":"https://github.com/Siddhesh-Agarwal/straindb-rag","commit_stats":null,"previous_names":["siddhesh-agarwal/straindb-rag"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Siddhesh-Agarwal/straindb-rag","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siddhesh-Agarwal%2Fstraindb-rag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siddhesh-Agarwal%2Fstraindb-rag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siddhesh-Agarwal%2Fstraindb-rag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siddhesh-Agarwal%2Fstraindb-rag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Siddhesh-Agarwal","download_url":"https://codeload.github.com/Siddhesh-Agarwal/straindb-rag/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siddhesh-Agarwal%2Fstraindb-rag/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28815385,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T12:25:15.069Z","status":"ssl_error","status_checked_at":"2026-01-27T12:25:05.297Z","response_time":168,"last_error":"SSL_read: 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":["langchain","openai","python","rag-model","streamlit"],"created_at":"2025-01-14T05:15:49.187Z","updated_at":"2026-01-27T15:02:23.856Z","avatar_url":"https://github.com/Siddhesh-Agarwal.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# StrainDB RAG\n\nAn RAG Model based on [StrainsDB](https://strainsdb.org/). The Database for the project was provided by [Kenneth Reitz](https://github.com/kennethreitz).\n\n___\n\n## Steps involved\n\n### Extracting and Validating the Data\n\n- The SQLite DataBase consisted of 19 tables from which the `strains_strain` table was extracted.\n  - **Solution**: extract data using SQLite module and create a `Strain` class (that inherits `pydantic.BaseModel`) for data validation\n- Then the table's data cells consisted of lists in string format which needed to be converted back\n  - **Solution**: `eval(\"[1, 2, 3]\")` returns `[1, 2, 3]`\n- The data needs to be saved.\n  - **Solution**: dump data in JSON format.\n\n### Data Tokenization\n\n- The Data was embedded into ChromaDB (persistent client) using the `OpenAIEmbeddings` function.\n  - **Solution**: `OpenAIEmbeddings` function from the `langchain_openai` package.\n\n### Retrieval\n\n- The data was retrieved from the ChromaDB using the `Chroma` class.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiddhesh-agarwal%2Fstraindb-rag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiddhesh-agarwal%2Fstraindb-rag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiddhesh-agarwal%2Fstraindb-rag/lists"}