You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
is it possible to use the file_search with vector store defined in the assistants playground, where asking questions of the file-search works very well, in the teams ai assistant planner. So far I was not able to set up the file_search option to be enabled and the assistant in the teams ai library does not use predefined vector store.
import { MemoryStorage, MessageFactory, TurnContext } from "botbuilder";
// See https://aka.ms/teams-ai-library to learn more about the Teams AI library.
import { Application, AI, preview } from "@microsoft/teams-ai";
import config from "../config";
// See README.md to prepare your own Azure OpenAI Assistant
if (!config.azureOpenAIKey || !config.azureOpenAIAssistantId) {
throw new Error(
"Missing AZURE_OPENAI_API_KEY or AZURE_OPENAI_ASSISTANT_ID. See README.md to prepare your own Azure OpenAI Assistant."
);
}
import { resetMessage } from "./messages";
import { httpErrorAction, searchDocuments } from "./actions";
// Create AI components
// Use OpenAI
const planner = new preview.AssistantsPlanner({
apiKey: config.azureOpenAIKey,
assistant_id: config.azureOpenAIAssistantId,
endpoint: config.azureOpenAIEndpoint
});
// Define storage and application
const storage = new MemoryStorage();
const app = new Application({
storage,
ai: {
planner,
},
});
app.conversationUpdate("membersAdded", async (turnContext: TurnContext) => {
const welcomeText = "How can I help you today?";
for (const member of turnContext.activity.membersAdded) {
if (member.id !== turnContext.activity.recipient.id) {
await turnContext.sendActivity(MessageFactory.text(welcomeText));
}
}
});
app.message("reset", resetMessage);
app.ai.action(AI.HttpErrorActionName, httpErrorAction);
app.ai.action("searchDocuments", searchDocuments);
export default app;
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
is it possible to use the file_search with vector store defined in the assistants playground, where asking questions of the file-search works very well, in the teams ai assistant planner. So far I was not able to set up the file_search option to be enabled and the assistant in the teams ai library does not use predefined vector store.
Beta Was this translation helpful? Give feedback.
All reactions