RAG on Support Tickets

In this example we'll index customer support tickets and query them to find the most similar ticket to a new one.

Let's create our first index where we'll add imaginary support tickets.

Now let's add some support tickets to our index.

Now, let's imagine that another customer has an issue with their account. We can query our index to find the most similar support ticket

You can also filter by metadata, for example, to only retrieve open tickets.

That's it! Indexes are a powerful tool at the core of many AI applications. When combined with functions, they can give knowledge about your data to LLMs and enable a lot of interesting use cases.