{"id":26612306,"url":"https://github.com/kid1412621/fast_lang_stream","last_synced_at":"2026-05-03T01:45:11.546Z","repository":{"id":284010433,"uuid":"952554884","full_name":"kid1412621/fast_lang_stream","owner":"kid1412621","description":"FastAPI + LangChain + Streamlit","archived":false,"fork":false,"pushed_at":"2025-03-23T16:15:10.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T17:24:58.958Z","etag":null,"topics":["fastapi","langchain","llm","streamlit","uv"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kid1412621.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2025-03-21T13:28:21.000Z","updated_at":"2025-03-23T16:15:14.000Z","dependencies_parsed_at":"2025-03-23T17:35:06.498Z","dependency_job_id":null,"html_url":"https://github.com/kid1412621/fast_lang_stream","commit_stats":null,"previous_names":["kid1412621/fast_lang_stream"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kid1412621%2Ffast_lang_stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kid1412621%2Ffast_lang_stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kid1412621%2Ffast_lang_stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kid1412621%2Ffast_lang_stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kid1412621","download_url":"https://codeload.github.com/kid1412621/fast_lang_stream/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245200706,"owners_count":20576674,"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":["fastapi","langchain","llm","streamlit","uv"],"created_at":"2025-03-24T03:17:31.230Z","updated_at":"2026-05-03T01:45:11.541Z","avatar_url":"https://github.com/kid1412621.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Welcome to Ollama + FastAPI + LangChain + Streamlit examples! 👋\n\nWhy another template project while bunch of similar ones out there?\n\nYes, lots of `LangChain` and `Streamlit` demos on Github. But almost all of them are direct integration, no API provided.\n\nThis project aims to implement modern python solution(like, uv and FastAPI) for UI, API around LLM use cases.\n\n## Examples\n\n1. [chatbot](chatbot) ([code](./frontend/pages/chatbot.py))\n  General purpose chatbot integrated with Ollama, features:\n  - Model selection\n  - Model parameters setting\n  - Ollama health check\n2. [image descriptor](image_descriptor) ([code](./frontend/pages/image_descriptor.py))\n  - describe user uploaded image\n\n## Stack\n\nllm: [Ollama](http://ollama.com)\n\nbackend: [uv](https://docs.astral.sh/uv/) + [FastAPI](https://fastapi.tiangolo.com/) + [LangChain](http://langchain.com)\n\nfrontend: [uv](https://docs.astral.sh/uv/) + [Streamlit](https://streamlit.io)\n\n## Dev\n\n### Install Ollama \u0026 uv\n\n```bash\n# other platforms pls check https://ollama.com/download/linux\nbrew install ollama\n# lightweight and multi-modal capabilities for local dev\nollama pull gemma3\n# other platforms pls check https://docs.astral.sh/uv/getting-started/installation/\nbrew install uv\n```\n\n### Run API app\n\n```bash\ncd backend\nuv sync --active\nuv run main.py\n```\n\nFor debug in VSCode, add this to `.vscode/launch.json`, then hit `F5`.\n\n```json\n{\n    \"version\": \"0.2.0\",\n    \"configurations\": [\n        {\n            \"name\": \"API Debugger\",\n            \"type\": \"debugpy\",\n            \"request\": \"launch\",\n            \"program\": \"main.py\",\n            \"console\": \"integratedTerminal\"\n        }\n    ]\n}\n```\n\n### Run UI app\n\n```bash\ncd frontend \u0026\u0026 uv sync --active \u0026\u0026 uvx streamlit run intro.py\n```\n\nFor debug in VSCode, add this to `.vscode/launch.json`, then hit `F5`.\n\n```json\n{\n    \"version\": \"0.2.0\",\n    \"configurations\": [\n        {\n            \"name\": \"Streamlit Debug\",\n            \"type\": \"debugpy\",\n            \"request\": \"launch\",\n            \"module\": \"streamlit\",\n            \"args\": [\n                \"run\",\n                \"intro.py\",\n                \"--server.port=8501\",\n                \"--server.headless=true\",\n                \"--server.runOnSave=true\"\n            ],\n            \"justMyCode\": true,\n            \"env\": {\n                \"PYTHONPATH\": \"${workspaceFolder}\"\n            }\n        }\n    ]\n}\n```\n\n## Other integration examples\n- [LangChain + Streamlit](https://github.com/streamlit/llm-examples)\n- [LangChain(RAG) + Streamlit](https://github.com/streamlit/example-app-langchain-rag)\n- [LangChain + LangGraph + Next.js](https://github.com/langchain-ai/chat-langchain)\n- [LangChain.js + Next.js](https://github.com/langchain-ai/langchain-nextjs-template)\n- [LangChain + Neo4j + Svelte.js](https://github.com/docker/genai-stack)\n- [FastAPI + React.js](https://github.com/fastapi/full-stack-fastapi-template)\n\n## TODO\n\n- LangGraph integration\n- RouteLLM integration\n- Vector DB integration\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkid1412621%2Ffast_lang_stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkid1412621%2Ffast_lang_stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkid1412621%2Ffast_lang_stream/lists"}