.net AI 向量搜索
更详细例子 使用 InMemoryVectorStore 做向量数据存储 使用 ollama + embeddinggemma 进行向量计算 处理过程 // 这里使用 ollama + embeddinggemma await using var serviceProvider = this.CreateServiceProviderCore(it…
2025-9-15 18:07
|
949
|
|
104 字
|
4 分钟
.net AI 返回结构化结果
返回结构化结果需要对应的 AI 支持 (OpenAI),发出请求时指定 response_format 为 json_schema, 然后 json_schema 属性指定返回的结构 可以通过修改提示词,强制要求返回结构化结果,在某些 AI 上,它还是会返回兼容结果,从而成功运行。测试时在 ollama + phi4, 通义上都正常的返回指定的结构…
2025-9-15 13:24
|
934
|
|
217 字
|
5 分钟
shell 中调用 AI
微软的方案 https://learn.microsoft.com/zh-cn/powershell/utility-modules/aishell/overview?view=ps-modules windows 可以直接整合入 pwsh, linux 目前只能运行独立版本 linux 下,直接下载,解压缩,运行 aish。或是加入到全局路径中 …
2025-7-14 1:20
|
1,169
|
|
208 字
|
3 分钟
AI 自动化工具
源LLM友好型网页爬虫和抓取工具 https://github.com/unclecode/crawl4ai 可以将用户界面屏幕截图解析为结构化且易于理解的元素 https://github.com/microsoft/OmniParser 使用说明 https://zhuanlan.zhihu.com/p/24662930428
2025-4-06 21:10
|
1,054
|
|
63 字
|
几秒读完
调用 kimi web 接口
// 使用了 Betalgo.OpenAI // 使用了 kimi 的 web 接口 https://github.com/LLM-Red-Team/kimi-free-api // 这里使用 simple-one-api 进行了 api 调用整合 https://github.com/fruitbars/simple-one-api #load …
2024-11-10 0:59
|
1,555
|
|
77 字
|
4 分钟
ollama 常用命令
官网 https://ollama.com/ 修改监听 地址 : windows `[System.Environment]::SetEnvironmentVariable('OLLAMA_HOST', '0.0.0.0', 'Machine')` # 监听地址 `[System.Envi…
2024-11-08 1:28
|
1,323
|
|
436 字
|
5 分钟
调用扣子
#load "AppLib" #load "seqlog" // 使用了 Betalgo.OpenAI // 使用了 coze2openai 将coze调用转为 openai api 调用 async Task Main(string[] args) { var app = this.CreateApp(ar…
2024-6-16 1:45
|
1,454
|
|
71 字
|
4 分钟