{"id":29266290,"url":"https://github.com/drbenjamin/rag-on-snow","last_synced_at":"2026-05-09T05:31:20.767Z","repository":{"id":263822296,"uuid":"866934850","full_name":"DrBenjamin/RAG-on-Snow","owner":"DrBenjamin","description":"LLM utilizing RAG on Snowflake.","archived":false,"fork":false,"pushed_at":"2025-07-30T08:43:40.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-25T08:47:30.526Z","etag":null,"topics":["llm","rag","snowflake","streamlit"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DrBenjamin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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-10-03T06:36:09.000Z","updated_at":"2025-07-30T08:43:43.000Z","dependencies_parsed_at":"2024-11-20T13:48:09.855Z","dependency_job_id":"6070d26f-7530-442b-9008-f1111f986e4c","html_url":"https://github.com/DrBenjamin/RAG-on-Snow","commit_stats":null,"previous_names":["drbenjamin/rag-on-snow"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/DrBenjamin/RAG-on-Snow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrBenjamin%2FRAG-on-Snow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrBenjamin%2FRAG-on-Snow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrBenjamin%2FRAG-on-Snow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrBenjamin%2FRAG-on-Snow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DrBenjamin","download_url":"https://codeload.github.com/DrBenjamin/RAG-on-Snow/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrBenjamin%2FRAG-on-Snow/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32808387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"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":["llm","rag","snowflake","streamlit"],"created_at":"2025-07-04T15:42:01.271Z","updated_at":"2026-05-09T05:31:20.328Z","avatar_url":"https://github.com/DrBenjamin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RAG on Snow\n\nThis application stores unstructured data from documents and other sources like\nimages and video in a Snowflake DB utilizing Langchain to query this data. The\napplication is built using Streamlit and uses `StreamlitChatMessageHistory` for\nmemory of the Snowflake Cortex generated embeddings.\n\n## Langchain implementation (langchain-snowrag)\n\n[Tutorial on Medium](https://medium.com/snowflake/integrating-langchain-with-snowflake-cortex-0367f934f1c1).\nSee the [documentation](https://docs.snowflake.com/user-guide/snowflake-cortex/vector-embeddings#snowflake-python-connector)\non Snowflake for more information.\n\n## Setup\n\nFirst create an environment using the `environment.yml` file:\n\n```bash\n# Creating a conda environment\nconda env create --file environment.yml\n\n# Activate the environment\nconda activate snowrag\n```\n\nNow configure the Streamlit app in the `.streamlit/secrets.toml` file:\n\n```toml\n# Configuring LLM\n[LLM]\nLLM_CHATBOT_NAME = \"\u003cchatbot_name\u003e\"\nLLM_SYSTEM = \"Please write a short answer.\"\nLLM_SYSTEM_PLUS = \"Prioritize the most relevant information from the similarity search!\"\nLLM_ASSISTANT = \"How can I help?\"\nLLM_USER_EXAMPLE = \"\u003cuser_example\u003e\"\nLLM_ASSISTANT_EXAMPLE = \"\u003c\u003eassistant_example\u003e\"\n\n# Configuring Snowflake\n[snowflake]\nuser = \"\u003cuser_name\u003e\"\naccount = \"\u003caccount_name\u003e\"\nprivate_key_file = \"\u003cpath to rsa_key.p8\u003e\"\nrole = \"\u003crole_name\u003e\"\nwarehouse = \"\u003cwarehouse_name\u003e\"\ndatabase = \"\u003cdatabase_name\u003e\"\nschema = \"\u003cschema_name\u003e\"\n\n# Configuring MinIO storage\n[MinIO]\nendpoint = \"http://127.0.0.1:9000\"\nbucket = \"\u003cbucket_name\u003e\"\naccess_key = \"\u003caccess_key\u003e\"\nsecret_key = \"\u003csecret_key\u003e\"\n```\n\n## Streamlit web app\n\nJust run the following code:\n\n```bash\n# Running the Streamlit app\npython -m streamlit run snowrag.py\n\n# Checking the Streamlit app\nlsof -i :8501\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrbenjamin%2Frag-on-snow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrbenjamin%2Frag-on-snow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrbenjamin%2Frag-on-snow/lists"}