# RAG + Custom Agents

**URL:** <https://community.deeplearning.ai/t/rag-custom-agents/561574>\
**Category:** AI Discussions\
**Tags:** ai-discussions, langchain\
**Created:** [January 30, 2024, 4:20pm UTC](https://community.deeplearning.ai/t/rag-custom-agents/561574 "2024-01-30T16:20:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SanjaySaatyaki](https://avatars.discourse-cdn.com/v4/letter/s/f19dbf/32.png) [@SanjaySaatyaki](https://community.deeplearning.ai/u/SanjaySaatyaki)\
**Post date:** [January 30, 2024, 4:20pm UTC](https://community.deeplearning.ai/t/rag-custom-agents/561574/1 "2024-01-30T16:20:19Z")

</div>

I already have a RAG application build with elastic search and OpenAI embedddings. I also need to create a custom agent to get the chat with the data over the stardog which we use for knowledge graph. Can these both be in a single runnable/chains or we should split it into two separate applications?

If i can combine both how can i do it?

Thanks in advance 🙂
