[Python] How to integrate RAG with a fine-tuned AI model to access real-time API data?

Discussão em 'Python' iniciado por Stack, Março 25, 2025.

  1. Stack

    Stack Membro Participativo

    I fine-tuned an AI model and now I want to integrate Retrieval-Augmented Generation (RAG) so it can fetch real-time information from an external API — for example, checking status updates or current data. How can I combine RAG with my model to achieve this? Any tools, frameworks, or examples would be really helpful. For example, I fine-tuned my AI model to act as a client assistant. However, if a user asks about their shipment status, the model doesn't know how to handle that. How can I train or configure my AI to recognize when it needs to ask for the shipment code, use that code to call an external API, and then generate a response based on the API result?

    Continue reading...

Compartilhe esta Página