Creating the text-to-query prompt
Deze oefening maakt deel uit van de cursus
Text-to-Query Agents with MongoDB and LangGraph
Oefeninstructies
- Import and preview the prebuilt
MONGODB_AGENT_SYSTEM_PROMPTto get a feel for the instructions. - Define a prompt template containing
MONGODB_AGENT_SYSTEM_PROMPTto instruct the text-to-query agent on how to use the tools provided; pre-fill thetop_kandtool_namesparameter. - Bind the tools with the OpenAI LLM,
llm. - Chain the
promptto thetool_augmented_llmusing the|operator, and invoke it on the input provided.
Note: If you’re running DataLab in Restricted Mode, this exercise isn’t supported yet. We’re actively working on making it available in the future.
Praktische interactieve oefening
Zet theorie om in actie met een van onze interactieve oefeningen.
Begin met trainen