Skip to content

Is it possible to use two data sources or indexes in Semantic Kernel? #6703

Answered by dmytrostruk
Cobra86 asked this question in Q&A
Discussion options

You must be logged in to vote

Since index is configured on per-request basis, I think it should be possible to use multiple indexes for different requests:

var chatExtensionsOptions = GetAzureChatExtensionsOptions();
var promptExecutionSettings = new OpenAIPromptExecutionSettings { AzureChatExtensionsOptions = chatExtensionsOptions };
var chatCompletion = kernel.GetRequiredService<IChatCompletionService>();
var chatMessage = await chatCompletion.GetChatMessageContentAsync(chatHistory, promptExecutionSettings);

But I'm not sure it's possible to specify multipl…

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by sophialagerkranspandey
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@dmytrostruk
Comment options

@Cobra86
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants