我用 Azure OpenAI GPT-4 ,接口它是支持自定义数据集,调用聊天接口指定数据源就可以了:背后也是向量搜索。
https://learn.microsoft.com/zh-cn/azure/ai-services/openai/concepts/use-your-data#data-formats-and-file-types(——提示用这种认识搜索服务是要额外花钱的,如果考虑成本自建更好,开源向量数据库也很多)
```
{
"messages": [
{
"role": "user",
"content": "who is my manager?"
}
],
"dataSources": [
{
"type": "AzureCognitiveSearch",
"parameters": {
"endpoint": "'$SearchEndpoint'",
"key": "'$SearchKey'",
"indexName": "'$SearchIndex'",
"filter": "my_group_ids/any(g:
search.in(g, 'group_id1, group_id2'))"
}
}
]
}
```