{"id":18028470,"url":"https://github.com/interactivetech/llm-rag-local-dev","last_synced_at":"2025-10-29T02:48:29.266Z","repository":{"id":224781085,"uuid":"764208805","full_name":"interactivetech/llm-rag-local-dev","owner":"interactivetech","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-28T00:23:32.000Z","size":367,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T05:24:55.827Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/interactivetech.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}},"created_at":"2024-02-27T17:11:01.000Z","updated_at":"2024-02-27T17:11:42.000Z","dependencies_parsed_at":"2024-10-30T09:12:49.376Z","dependency_job_id":null,"html_url":"https://github.com/interactivetech/llm-rag-local-dev","commit_stats":null,"previous_names":["interactivetech/llm-rag-local-dev"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interactivetech%2Fllm-rag-local-dev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interactivetech%2Fllm-rag-local-dev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interactivetech%2Fllm-rag-local-dev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interactivetech%2Fllm-rag-local-dev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/interactivetech","download_url":"https://codeload.github.com/interactivetech/llm-rag-local-dev/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247249600,"owners_count":20908211,"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":"2024-10-30T08:42:17.215Z","updated_at":"2025-10-29T02:48:24.231Z","avatar_url":"https://github.com/interactivetech.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Local RAG APP instructions\n\n`tar -xvf rag_db.tar.gz rag_db`\n# install vectordb locally\n\nUse conatiner mendeza/mistral-rag-env:0.0.11-pachctl\n\nget absolute path of current directory\n`$pwd`\nthen run \n\n`docker run -it -p 8888:8888 -v $PWD:/home mendeza/mistral-rag-env:0.0.11-pachctl /bin/bash`\n\n## inside docker container: \ncd /home\n\njupyter lab --ip=0.0.0.0 --port=8080 --NotebookApp.token='' --NotebookApp.password='' --allow-root\n\n# run `notebooks/install_vector_embed.ipynb` to locally download the vectordb in /home directory. \nThis will in turn be downloaded to $pwd directory\n\nNext, stop jupyter notebook. we will run python scripts to create the vector database and run the UI application.\n\n# run app\n`pip install openai chainlit langchain`\n`bash run_app.sh`\n\n# Run the FastAPI endpoint\n* `docker run -it -p 8888:8888 -v $PWD:/home mendeza/mistral-rag-env:0.0.11-pachctl /bin/bash`\n* `cd /home`\n* `pip install chromadb uvicorn fastapi sentence_transformers==2.2.2 openai chainlit`\n* `bash run_api.sh`\n\nTest API with curl request:\n```\ncurl -v -X 'POST' \\\n  'http://127.0.0.1:8888/generate/' \\\n  -H 'accept: application/json' \\\n  -H 'Content-Type: application/json' \\\n\n```\n## (OPTIONAL) re-index the documents\n### Run index_docs.sh\n\nNOTE: this requires a GPU\n\n`pip install langchain`\n`bash index_docs.sh`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finteractivetech%2Fllm-rag-local-dev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finteractivetech%2Fllm-rag-local-dev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finteractivetech%2Fllm-rag-local-dev/lists"}