# ollama_rag **Repository Path**: wangluochong/ollama_rag ## Basic Information - **Project Name**: ollama_rag - **Description**: 使用Ollama+RAG开发应用 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2025-02-08 - **Last Updated**: 2025-02-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### 创建虚拟环境 ```shell conda create -n ollama_rag python=3.11.7 conda activate ollama_rag ``` ### 安装依赖库 ```shell pip install langchain langchain-community langchain-core gradio tiktoken chromadb bs4 docx2txt unstructured markdown ``` ### 下载数据集 ```shell # LLM模型 ollama pull qwen:0.5b # 嵌入模型 ollama pull nomic-embed-text ``` ### 访问地址 ```sh # 支持多种格式文件 https://zhuanlan.zhihu.com/p/680179871 C:/Users/Administrator/Desktop/对接共享平台流程V1.0.docx E:/notes/java/springboot加密密码.md F:/study/hello-algo-1.0.0-zh-java.pdf # 访问 http://127.0.0.1:7860/ ``` ### 示例 ![查询例子](./assets/example.jpg)