Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions docs/components/store.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ used vector store::
use Symfony\AI\Store\Document\TextDocument;
use Symfony\AI\Store\Indexer;

$indexer = new Indexer($platform, $model, $store);
$document = new TextDocument('This is a sample document.');
$indexer->index($document);
$document = [new TextDocument('This is a sample document.')];
$loader = new InMemoryLoader($documents)
$indexer = new Indexer($loader, $vectorizer, $store);
$indexer->index();

You can find more advanced usage in combination with an Agent using the store for RAG in the examples folder.

Expand Down
Loading