Can I add other data as context for a RAG call?

Gerry Docherty 0 Reputation points
2024-06-27T13:22:51.8733333+00:00

I am looking to essentially add extra context to my RAG call -

1 - Use AI Search to retrieve most relevant chunks/embeddings

2 - Use metadata from those to query my database and related items for extra context

3 - Combine both to provide the context to the chat-completions endpoint

Everywhere seems to say to just use a datasource of AI search but doesn't allow for data manipulation/additional context.

Azure AI Search
Azure AI Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
828 questions
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
2,528 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sam Cogan 10,332 Reputation points MVP
    2024-07-01T07:34:13.28+00:00

    You can, but you're getting outside of the realms of what the nice UI-based point-and-click solutions can support, and you're going to need to start writing some code to be able to do this. I would recommend looking at the following libraries that are designed to build this sort of thing:

    You could also look at Microsoft Copilot Studio, which allows you to build connectors to various sources and bring them together.

    0 comments No comments