{"id":16288431,"url":"https://github.com/dekstroza/code-rag-experiments","last_synced_at":"2026-06-29T18:32:05.541Z","repository":{"id":243065341,"uuid":"810887823","full_name":"dekstroza/code-rag-experiments","owner":"dekstroza","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-06T13:17:05.000Z","size":138,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-30T22:37:29.576Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dekstroza.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-06-05T14:36:31.000Z","updated_at":"2024-06-06T13:17:08.000Z","dependencies_parsed_at":"2024-06-06T14:51:54.890Z","dependency_job_id":"52c6ba42-e092-4b60-8c46-a92feae7f724","html_url":"https://github.com/dekstroza/code-rag-experiments","commit_stats":null,"previous_names":["dekstroza/code-rag-experiments"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dekstroza/code-rag-experiments","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dekstroza%2Fcode-rag-experiments","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dekstroza%2Fcode-rag-experiments/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dekstroza%2Fcode-rag-experiments/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dekstroza%2Fcode-rag-experiments/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dekstroza","download_url":"https://codeload.github.com/dekstroza/code-rag-experiments/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dekstroza%2Fcode-rag-experiments/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34939227,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-29T02:00:05.398Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-10T19:48:18.055Z","updated_at":"2026-06-29T18:32:05.523Z","avatar_url":"https://github.com/dekstroza.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RAG Creation with existing code base\n\n\n## Requirements\n\n1. Poetry (https://python-poetry.org/docs/) - Dependency Management\n2. Python 3.8 or higher \n3. Ollama (https://ollama.com/) - For running LLM models\n4. Huggingface cli (https://huggingface.co/docs/huggingface_hub/en/guides/cli)\n\n## Installation\n\nClone the repository, and inside the repository run:\n```bash\nmkdir -p vectorstores/db \nmkdir source_code \n```\n\nThis is where the vector store will be created, and where you should clone\nsource repositories. Clone any code you wish to work with into the source_code\nfolder.\n\nInstall the Ollama for your operating system. You can find the installation\ninstructions at https://ollama.com/docs/installation.html. Once Ollama is\nrunning, you can download the models you wish to use locally with:\n\n```bash\nollama run llama3 \n```\nAbove will make sure the model is downloaded and ready to be used. You dont need\nto run it with ollama run llama3 when you are using the chatbot.\n\nEmbedding models are huggingface models, so you can download them using the cli\ntool:\n```bash\n\nhuggingface-cli login #(in case you need to log in, some models require\n                      #verification through the login, in order to download them)\nhuggingface-cli download BAAI/bge-large-en-v1.5 #will download the model locally\n``` \nSee documentation on huggingface and ollama for more details on how to use it.\n\n## Usage\n\nGo to the root folder of this repository and run:\n```bash\npoetry install\n```\nThis will install all the dependencies required for the project. Once completed,\nrun:\n```bash\npoetry shell\n``` \nThis will activate the virtual environment.\n\nOnce the virtual environment is activated, you can run the following command to:\n```bash\n./run model\n```\n\nThis will open web browser (http://localhost:8000) where you can interact with the model.\n\n## Changing the model:\n\nOllama can run many different models. To change the model, you can edit the file\nchatbot.py. The model is kept in the variable `MODEL`. You can change this to\nuse different models.\n\n\n## Short explanation:\n\nCode is using chainlit to present UI. See chainlit website for more details on\nhow to use it. Interaction with the model through RAG is done with langchain\n(see langchain documentation for more details).\n\nFor most basic loading of the code see the: java_code_loader.py  file. This file\nwill also attempt to load metadata json files, those are created with\nparse_all_java_except_tests.py (see python code for details, its all simple\nstuff).\nFor most basic maven site documentation loading see: html_loader.py\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdekstroza%2Fcode-rag-experiments","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdekstroza%2Fcode-rag-experiments","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdekstroza%2Fcode-rag-experiments/lists"}