Documentation

Learn to Build with CppCode

Comprehensive guides, API references, and examples to help you get the most out of our AI tools for C++ development.

FAISS Extended

Enhanced vector search with TBB parallelism, caching, and on-disk storage

MLGraph

Distributed vector database inspired by turbopuffer architecture

SLM Ensemble

8 specialized language models for C++ engineering

Products

Explore our AI tools for C++ development

Blog

Technical deep dives and research

Quick Example

Get Started in Minutes

Here's a quick example of using FAISS Extended for vector search

#include <faiss/IndexIVFFlat.h>
#include <faiss/invlists/SortedOnDiskInvertedLists.h>

// Create sorted on-disk inverted lists for faster search
auto sorted_lists = std::make_unique<SortedOnDiskInvertedLists>(
    nlist,           // number of clusters
    code_size,       // vector dimension * sizeof(float)
    "index.ivf"      // storage file
);

// Build index with sorted lists
faiss::IndexIVFFlat index(quantizer, d, nlist);
index.replace_invlists(sorted_lists.release(), true);

// Train and add vectors
index.train(n, vectors);
index.add(n, vectors);

// Search with early termination (3-5x faster!)
index.nprobe = 16;
index.search(nq, queries, k, distances, labels);

Need Help?

Can't find what you're looking for? Our AI assistant is available 24/7, or reach out to our team directly.

Contact Support