{"id":27921532,"url":"https://github.com/ngshya/easyrag","last_synced_at":"2025-05-13T15:40:02.552Z","repository":{"id":226887639,"uuid":"767792699","full_name":"ngshya/easyRAG","owner":"ngshya","description":"Build your own RAG and run it locally on your laptop: ColBERT + DSPy + Streamlit","archived":false,"fork":false,"pushed_at":"2024-03-14T00:02:26.000Z","size":96,"stargazers_count":56,"open_issues_count":1,"forks_count":10,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-06T21:08:44.212Z","etag":null,"topics":["chatbot","colbert-ai","dspy","genai","rag","streamlit"],"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/ngshya.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}},"created_at":"2024-03-05T22:50:44.000Z","updated_at":"2025-01-27T01:59:58.000Z","dependencies_parsed_at":"2024-03-10T12:24:25.473Z","dependency_job_id":"716d921d-c3c9-4843-bced-f818b92ebcbe","html_url":"https://github.com/ngshya/easyRAG","commit_stats":null,"previous_names":["ngshya/easyrag"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngshya%2FeasyRAG","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngshya%2FeasyRAG/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngshya%2FeasyRAG/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngshya%2FeasyRAG/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ngshya","download_url":"https://codeload.github.com/ngshya/easyRAG/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252769422,"owners_count":21801378,"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":["chatbot","colbert-ai","dspy","genai","rag","streamlit"],"created_at":"2025-05-06T21:09:03.811Z","updated_at":"2025-05-06T21:09:05.564Z","avatar_url":"https://github.com/ngshya.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Build your own RAG and run it locally on your laptop: ColBERT + DSPy + Streamlit\n\nTutorial for Generative AI beginners: let’s build a very simple RAG (Retrieval Augmented Generation) system locally, step-by-step.\n\nMedium post: https://towardsdatascience.com/rag-on-your-laptop-colbert-dspy-streamlit-c206ea92188f\n\n## Environment setup\n\n```bash\nconda create -n easyrag -c nvidia -c conda-forge -v python==3.9 cuda-toolkit==12.4.0 jupyterlab==4.1.4 ipywidgets==8.1.2 wikipedia==1.4.0 mypy==1.8.0 accelerate==0.27.0 streamlit==1.29.0 pyarrow==14.0.0\nconda activate easyrag\npip install colbert-ai[torch,faiss-gpu]==0.2.19 dspy-ai==2.3.6 \n\nexport CUDA_HOME=$CONDA_PREFIX\nexport LIBRARY_PATH=$CONDA_PREFIX/lib\nexport LD_LIBRARY_PATH=$CONDA_PREFIX/lib\n```\n\n## Sample data download\n\n```bash\npython fringe_wikipedia.py\n```\n\n## ColBERTv2 indexing and retrieval\n\n```bash\nwget https://downloads.cs.stanford.edu/nlp/data/colbert/colbertv2/colbertv2.0.tar.gz\ntar -xvzf downloads/colbertv2.0.tar.gz\n\npython colbert_index.py \npython colbert_server.py \u0026  # It could take some seconds\n```\n\n## Running the chatbot interface\n\n```bash\nstreamlit run chatbot.py \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngshya%2Feasyrag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fngshya%2Feasyrag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngshya%2Feasyrag/lists"}