{"id":28409216,"url":"https://github.com/wgrape/aisearch","last_synced_at":"2025-06-25T00:31:24.123Z","repository":{"id":293055546,"uuid":"982480349","full_name":"WGrape/aisearch","owner":"WGrape","description":"AI搜索项目","archived":false,"fork":false,"pushed_at":"2025-06-14T07:29:14.000Z","size":209,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-14T08:31:14.023Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WGrape.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,"zenodo":null}},"created_at":"2025-05-13T00:33:30.000Z","updated_at":"2025-06-14T03:13:33.000Z","dependencies_parsed_at":"2025-06-14T08:23:58.091Z","dependency_job_id":"bde94029-9543-4c84-bce5-2c06d9f227bd","html_url":"https://github.com/WGrape/aisearch","commit_stats":null,"previous_names":["wgrape/aisearch"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/WGrape/aisearch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WGrape%2Faisearch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WGrape%2Faisearch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WGrape%2Faisearch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WGrape%2Faisearch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WGrape","download_url":"https://codeload.github.com/WGrape/aisearch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WGrape%2Faisearch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261782154,"owners_count":23208901,"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-02T05:43:23.771Z","updated_at":"2025-06-25T00:31:24.109Z","avatar_url":"https://github.com/WGrape.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aisearch\nAI搜索项目\n\n## 一、运行效果\n\n### 1、首页\n![img.png](extra/images/index.png)\n\n### 2、搜索结果页\n![img.png](extra/images/search_result.png)\n\n## 二、前端部署\n\n### 1、项目配置\n\n前端项目启动后，会默认请求地址为 ```http://127.0.0.1:8100/``` 的后端服务。所以后端服务默认启动后也是8100端口，如果修改了后端服务的端口，请对应修改前端项目的配置。\n\n### 2、启动服务\n\n```bash\ncd web \u0026\u0026 npm install \u0026\u0026 npm run build\n\n# 上述命令如果启动失败，则可以在当前窗口执行本地启动命令。\nnpm run dev\n```\n\n前端部署成功后，访问 http://127.0.0.1:3000/ 即可。\n\n## 三、后端部署\n\n### 1、启动Milvus\n```bash\n# Download the configuration file\nwget https://github.com/milvus-io/milvus/releases/download/v2.5.13/milvus-standalone-docker-compose.yml -O docker-compose.yml\n\n# Start Milvus\nsudo docker compose up -d\n\n# Creating milvus-etcd  ... done\n# Creating milvus-minio ... done\n# Creating milvus-standalone ... done\n```\n\n### 2、部署本地模型\n先下载 [ollama](https://ollama.com/) 工具，然后搜索模型，进行下载即可。\n```bash\n# 下载部署deepseek对话模型\nollama run deepseek-r1:8b\n\n# 下载部署nomic嵌入模型\nollama run nomic-embed-text:v1.5\n```\n\n### 3、配置langfuse\n请前往 [langfuse](https://cloud.langfuse.com/) 官网，注册账号并创建项目。在项目中获取 API secret_key 和 public_key ，并在 config/{env}/config.yml 配置文件中修改 langfuse 对应配置即可。\n\n### 4、申请搜索引擎秘钥\n请按照流程申请 Bing 搜索引擎服务，并在获取秘钥后，修改 config/{env}/config.yml 配置文件中的 bing_subscription_key 配置即可。\n\n### 5、部署本地数据库\n如果没有安装 MySQL，请先安装 MySQL 数据库，并在 config/{env}/config.yml 配置文件中修改 database 数据库配置即可。\n\n### 6、启动服务\n\n```bash\npython src/main.py --dir=~/github/aisearch --env=test\n```\n\n后端部署成功后，访问 http://127.0.0.1:8100 即可。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwgrape%2Faisearch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwgrape%2Faisearch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwgrape%2Faisearch/lists"}