apoc.ml.rag

Procedure Apoc Extended

Takes a list of paths or a vector index name, relevant attributes and a natural language question to create a prompt implementing a Retrieval-augmented generation (RAG) technique.

Signature

apoc.ml.rag(paths :: ANY?, attributes :: LIST<STRING>, question :: STRING, conf = {} :: MAP?) :: (value :: STRING?)

Input parameters

Name Type Default

paths

ANY?

null

attributes

LIST<STRING>

null

question

STRING

null

conf

MAP?

{}

Output parameters

Name Type

value

STRING?