PureCPP is a completely independent product from PureRouter. You can use PureCPP without needing PureRouter and vice versa.
PureCPP is a high-performance RAG framework developed in C++, offered as a separate and independent product from PureAI. This guide will help you set up your development environment to start using PureCPP.
PureCPP supports various embedding models. To use pre-trained models, you can configure them like this:
from purecpp.embedding import EmbeddingModel# Download and configure the model (only on first execution)embedding_model = EmbeddingModel.from_pretrained("sentence-transformers/all-MiniLM-L6-v2")# Generate embeddingstexts = ["Example text 1", "Example text 2"]embeddings = embedding_model.embed_documents(texts)
The model download is done only once. Files are stored in a local cache directory.
Now that you have configured your environment, you are ready to start using PureCPP. Check out the Quickstart Guide to create your first RAG application.
Quickstart
Create your first RAG application with PureCPP.
Document Loaders
Learn how to load documents from different sources.