PhloTour
EN NL
26 / 30

AI memory (RAG)

Embed text, store the vectors and search by meaning. The model gets a memory.

Read the docs →
.phlo
// embed text, store the vectors, search by meaning
%Qdrant->create('docs')
%Qdrant->upsert('docs', $id, $text, title: $title)

$hits = %Qdrant->search('docs', 'how do refunds work?', top: 5)

// then answer with one call over any model: Claude, OpenAI, Gemini, Grok
$reply = %AI->chat(user: 'Answer using: '.$hits[0]->title)
		
searchhow do refunds work?
  • 0.92Refund policy and timelines
  • 0.81Cancelling a subscription
  • 0.74Accepted payment methods