Skip to content

Question: [.Net] Is it possible to have ChatCompletionAgent connected to two or more data sources #10938

Answered by crickman
PanClifton asked this question in Q&A
Discussion options

You must be logged in to vote

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.cs

In 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.

'''
Generate a well cited response to the search results:

Results:
{{$context}}

Citations:
{{$citations}}
'''

Although, I might consider wrapping the search as a KernelFunction and…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sophialagerkranspandey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
.NET Issue or Pull requests regarding .NET code agents
2 participants