Integrating gpt assistant with Rag model to personal chatbot?

Hi have created a RAG model in openAI playground, how do I integrate the assistant to my personal chatbot? Currently I have integrated simple assistant without RAG capability, but when I integrate the RAG model, then it does not detect the RAG database. Please provide me some solution or guidance. Thanks!

Welcome to the dev community!

Do you have any code you can share? More details?

Are you getting errors? What have you tried so far?

Hello,

try {
    const response = await axios.get(`https://api.openai.com/v1/assistants/${assistantId}`, {
      headers: {
        'Authorization': `Bearer ${OPENAI_API_KEY}`,
        'Content-Type': 'application/json'
      }
    });

  await openai.beta.threads.create(
        messages=[ { "role": "user", "content": lastUserMessage} ],
        tool_resources={
          "file_search": {
            "vector_store_ids": "id"
          }
        }
      )

      let formattedMessages = await retrieveAndSendMessages(thread.id, res);

So currently this is my code so I want to receive a response from the file store but i am unable to connect to that data.