# Working with Documents

The Agent SDK makes it trivial to work with Retrieval Augmented Generation (RAG) on your content.  In this section, we'll explore connecting to different embedding stores, how to create custom content processors, and controlling where you store files as they're uploaded and processed.

At the heart of RAG are two interfaces, Document and Metadata.  The Document holds the content section that you are embedding and the metadata provides additional context about that section.  Metadata could be things such as the slide number of a presentation or how many images are on that slide.

[This section from Langchain4J ](https://docs.langchain4j.dev/tutorials/rag#core-rag-apis)describes these fairly well.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.peoplelogic.dev/guides/getting-started-with-the-talent-agent-sdk/working-with-documents.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
