{"id":29100474,"url":"https://github.com/poneding/my-rag-app","last_synced_at":"2025-07-20T17:04:27.500Z","repository":{"id":295914046,"uuid":"991166052","full_name":"poneding/my-rag-app","owner":"poneding","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-29T16:16:39.000Z","size":3713,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-28T18:16:16.254Z","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/poneding.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":"2025-05-27T08:14:38.000Z","updated_at":"2025-05-29T16:16:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"134cdc71-7933-4f01-a80f-4e95e330bfa9","html_url":"https://github.com/poneding/my-rag-app","commit_stats":null,"previous_names":["poneding/my-rag-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/poneding/my-rag-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poneding%2Fmy-rag-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poneding%2Fmy-rag-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poneding%2Fmy-rag-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poneding%2Fmy-rag-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/poneding","download_url":"https://codeload.github.com/poneding/my-rag-app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poneding%2Fmy-rag-app/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266161900,"owners_count":23885927,"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":"2025-06-28T18:14:11.019Z","updated_at":"2025-07-20T17:04:27.492Z","avatar_url":"https://github.com/poneding.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# my-rag-app\n\n实现一个基于 RAG 的问答应用。\n\n知识来源：[胖东来培训指导手册 - 幸福生命状态](./documents/幸福生命状态.pdf)\n\u003e 该 PDF 文件从 \u003chttps://i.azpdl.cn/pdl-index/pdf/culture/20241205_1.pdf\u003e 下载。\n\n## 配置\n\n首先拷贝 `.env.example` 文件为 `.env` 文件：\n\n```bash\ncp .env.example .env\n```\n\n在 `.env` 文件中配置大模型 API 密钥。\n\n## 初始化环境\n\n```bash\nuv sync\n```\n\n## 启动应用\n\n1. 向量化外部知识库：\n\n```bash\nuv run embedding.py\n```\n\n2. 启动助手程序：\n\n```bash\nstreamlit run main.py\n```\n\n## 运行效果\n\n问答回复：\n\n![alt text](images/1748338280137.png)\n\n文档内容：\n\n![alt text](images/1748338333840.png)\n\n\u003e 经简单测试，可能知识库是中文文档的缘故，使用 Gemini 嵌入模型效果不佳，使用智谱的嵌入模型效果会更好。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fponeding%2Fmy-rag-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fponeding%2Fmy-rag-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fponeding%2Fmy-rag-app/lists"}