本地知识库搭建

ollama模型

ollama pull shaw/dmeta-embedding-zh

ollama接口命令行测试:

curl -X POST "http://127.0.0.1:11434/api/chat" -d "{""role"":""user"",""model"":""qwen2.5:7b"",""messages"":[{""content"":""你是谁""}],""temperature"":0.1,""stream"":false}"

ollama接口命令行测试:

curl -X POST "http://localhost:11434/api/embed" -d "{""model"": ""shaw/dmeta-embedding-zh"",""input"": ""how are you""}"

windows换行输入:

curl -X POST "http://localhost:11434/api/embed" -d ^
"{""model"": ""shaw/dmeta-embedding-zh"",^
""input"": ""how are you""}"

参考:

https://www.bilibili.com/video/BV1ALxLeuE7W

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享