it is possible to retrieve the actual text that assistant is using from vector store?

Jay Lee 0 Reputation points
2025-01-17T16:24:51.5333333+00:00

I'm currently using azure-ai-openai-assistants 1.0.0-beta.4 and client.listMessages(threadId) returns ThreadMessages but it doesn't contain the actual text retrieved from the vector store but only contains file citations. is there any way to retrieve the actual texts from the vector store?

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,654 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sina Salam 17,491 Reputation points
    2025-01-18T14:54:38.08+00:00

    Hello Jay Lee,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    I understand that your issues regarding your question.

    Yes, to your question.

    Retrieving the actual text from the vector store using the client.listMessages(threadId) method in the azure-ai-openai-assistants 1.0.0-beta.4 library will only returns ThreadMessages that only contain file citations.

    You will need to use different approach or method:

    1. How to retrieve the actual text documentation is here - https://learn.microsoft.com/en-us/dotnet/api/overview/azure/ai.openai.assistants-readme?view=azure-dotnet-preview for your review.
    2. You can use these alternatives:
      1. client.getMessage(threadId, messageId)
      2. client.getThread(threadId)
      3. client.searchMessages(query)
      4. client.getFile(fileId)

    I hope this is helpful! Do not hesitate to let me know if you have any other questions.


    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.