Question: [.Net] Is it possible to have ChatCompletionAgent connected to two or more data sources #10938
-
hello
is it possible to connect to agent more than one data source? i have a business requirement that chat have to scan more than one data sources to generate a response and return citations. i think i might have found solution for this problem. could you advise on following:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @PanClifton, I suspect this question isn't specific to In short, I believe this is limited to one data-source. You approach for using
'''
Generate a well cited response to the search results:
Results:
{{$context}}
Citations:
{{$citations}}
''' Although, I might consider wrapping the search as a |
Beta Was this translation helpful? Give feedback.
Hi @PanClifton, I suspect this question isn't specific to
ChatCompletionAgent
but is rather tied to the SK OpenAI chat-completion service and the underlying Azure services: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/openai/Azure.AI.OpenAI/tests/Samples/02_Oyd.csIn short, I believe this is limited to one data-source.
You approach for using
SearchClient
directly seems a reasonable approach to transcend this limit.KernelArguments
are used to define values for parameters in the agent instructions.Although, I might consider wrapping the search as a
KernelFunction
and…