{"id":34766220,"url":"https://github.com/leokwsw/local-rag","last_synced_at":"2026-05-06T04:02:51.290Z","repository":{"id":212075344,"uuid":"730646742","full_name":"leokwsw/local-rag","owner":"leokwsw","description":"A local rag demo","archived":false,"fork":false,"pushed_at":"2025-05-09T11:12:41.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-26T19:17:37.816Z","etag":null,"topics":["embedding-models","huggingface","llm","openai","python","rag","unstructured","weaviate"],"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/leokwsw.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}},"created_at":"2023-12-12T11:25:00.000Z","updated_at":"2025-05-09T11:12:44.000Z","dependencies_parsed_at":"2023-12-31T18:22:56.569Z","dependency_job_id":"d96328d0-c44d-45dd-bb38-2c1cd327a524","html_url":"https://github.com/leokwsw/local-rag","commit_stats":null,"previous_names":["leokwsw/local-rag"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/leokwsw/local-rag","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leokwsw%2Flocal-rag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leokwsw%2Flocal-rag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leokwsw%2Flocal-rag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leokwsw%2Flocal-rag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leokwsw","download_url":"https://codeload.github.com/leokwsw/local-rag/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leokwsw%2Flocal-rag/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32677933,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T02:33:58.958Z","status":"ssl_error","status_checked_at":"2026-05-06T02:33:39.611Z","response_time":117,"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":["embedding-models","huggingface","llm","openai","python","rag","unstructured","weaviate"],"created_at":"2025-12-25T07:32:06.204Z","updated_at":"2026-05-06T04:02:51.282Z","avatar_url":"https://github.com/leokwsw.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Demo - Local RAG Application Using Unstructured\n\nThis repository features a simple notebook which demonstrates how to use [Unstructured](https://unstructured.io/) to\ningest and pre-process documents for a local Retrieval-Augmented-Generation (RAG) application\n\nThe goal of this repo is not use any cloud services or external APIs and to run everything locally. This demonstrates\nRAG applications can be built with siloed infrastructure.\n\n## Setup Steps\n\n1. Install [Python](https://www.python.org/downloads/). Please use version 3.9 or later.\n\n2. Install Docker, Docker-Compose and Docker Desktop and make sure Docker Desktop is\n   running. [Installation instructions are here](https://docs.docker.com/compose/install/)\n\n3. Clone this repository by running the following command\n\n```bash\ngit clone git@github.com:leokwsw/local-rag.git\n```\n\n4. CD into this repository locally, create a virtual environment, install the requirements\n\n```bash\ncd local-RAG #enter local-RAG directory\npython3.10 -m venv env #create venv called env\nsource env/bin/activate #activate environment\npip install -r requirements.txt #install required packages\n```\n\n5. Install and Download LLama2 CCP Model. This is slightly different for every OS, but here is a link\n   with [download instructions](https://github.com/ggerganov/llama.cpp#obtaining-and-using-the-facebook-llama-2-model).\n   Below is how to install + download on MAC.\n\n```bash\nmkdir model_files #make model files folder to store Llama 2 model files\nCMAKE_ARGS=\"-DLLAMA_METAL=on\" FORCE_CMAKE=1 pip install llama-cpp-python\n#install llama-cpp-python package made for MAC Silicon chips\nhuggingface-cli download TheBloke/Llama-2-7b-Chat-GGUF --local-dir model_files --local-dir-use-symlinks False --include='*Q4_K*gguf' #download model\nhuggingface-cli download TheBloke/Mistral-7B-Instruct-v0.2-GGUF --local-dir model_files --local-dir-use-symlinks False --include='*Q4_K*gguf'\n\n```\n\n6. Start Docker Container to Spin up Weaviate VectorDB\n\n```bash\ndocker-compose up -d\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleokwsw%2Flocal-rag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleokwsw%2Flocal-rag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleokwsw%2Flocal-rag/lists"}