soilwise-he / soil-health-knowledge-graph

Repository for the soil health knowledge graph
MIT License
1 stars 0 forks source link

RAG to customize prompts according to the input text #3

Open wbcbugfree opened 5 months ago

wbcbugfree commented 5 months ago

Currently, few-shot learning prompts contain only fixed examples and thus may not benefit from those examples when processing text that is significantly different from the examples in the prompts. Therefore, introducing Retrieval-Augmented Generation (RAG) enables the customization of prompts according to the input text, i.e., the selection of ground-truth text-RDF pairs that are semantically closest to the input text. Obviously, RAG relies on a manually annotated and/or censored dataset containing ground-truth text-RDF pairs.

robknapen commented 5 months ago

Perhaps something else to consider is agentic RAG that can self-correct based on evaluation results.