2.13.0
OpenSearch vector store
New OpenSearch vector store thanks to the contribution of @jamosaur with PR #489
use NeuronAI\RAG\RAG;
use NeuronAI\RAG\VectorStore\OpenSearchVectorStore;
use NeuronAI\RAG\VectorStore\VectorStoreInterface;
use OpenSearch\GuzzleClientFactory;
class MyChatBot extends RAG
{
...
protected function vectorStore(): VectorStoreInterface
{
$opensearch = new GuzzleClientFactory()->create([
'base_uri' => 'http://localhost:9200',
]);
return new OpenSearchVectorStore(
client: $opensearch,
index: 'neuron-ai',
);
}
}