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
Am trying to add a vector store to a new Assistant thread. Have added the vectorStore.Id to the fileSearchToolResources and then included it in the ThreadCreationOptions. Following is the code. Am getting a null reference error.
//Add vector store to thread
FileSearchToolResources fileSearchToolResources = new FileSearchToolResources();
fileSearchToolResources.NewVectorStores.Clear();
fileSearchToolResources.VectorStoreIds.Add(vectorStore.Id);
ThreadRun threadRun;
try
{
ThreadCreationOptions threadOptions = new()
{
ToolResources =
{
FileSearch = fileSearchToolResources,
},
InitialMessages = { "New file uploaded " + FileUploaded.Id + " Create Profit and Loss Statement from this uploaded file. " }
};
threadRun = assistantClient.CreateThreadAndRun(_globalSettings.AssistantId, threadOptions);
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
-
Am trying to add a vector store to a new Assistant thread. Have added the vectorStore.Id to the fileSearchToolResources and then included it in the ThreadCreationOptions. Following is the code. Am getting a null reference error.
//Add vector store to thread
FileSearchToolResources fileSearchToolResources = new FileSearchToolResources();
fileSearchToolResources.NewVectorStores.Clear();
fileSearchToolResources.VectorStoreIds.Add(vectorStore.Id);
ThreadRun threadRun;
try
{
}
Beta Was this translation helpful? Give feedback.
All reactions