mattermost-community-enterp.../vendor/github.com/blevesearch/go-faiss
Claude ec1f89217a Merge: Complete Mattermost Server with Community Enterprise
Full Mattermost server source with integrated Community Enterprise features.
Includes vendor directory for offline/air-gapped builds.

Structure:
- enterprise-impl/: Enterprise feature implementations
- enterprise-community/: Init files that register implementations
- enterprise/: Bridge imports (community_imports.go)
- vendor/: All dependencies for offline builds

Build (online):
  go build ./cmd/mattermost

Build (offline/air-gapped):
  go build -mod=vendor ./cmd/mattermost

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-17 23:59:07 +09:00
..
autotune.go Merge: Complete Mattermost Server with Community Enterprise 2025-12-17 23:59:07 +09:00
faiss.go Merge: Complete Mattermost Server with Community Enterprise 2025-12-17 23:59:07 +09:00
index_flat.go Merge: Complete Mattermost Server with Community Enterprise 2025-12-17 23:59:07 +09:00
index_io.go Merge: Complete Mattermost Server with Community Enterprise 2025-12-17 23:59:07 +09:00
index_ivf.go Merge: Complete Mattermost Server with Community Enterprise 2025-12-17 23:59:07 +09:00
index.go Merge: Complete Mattermost Server with Community Enterprise 2025-12-17 23:59:07 +09:00
LICENSE Merge: Complete Mattermost Server with Community Enterprise 2025-12-17 23:59:07 +09:00
README.md Merge: Complete Mattermost Server with Community Enterprise 2025-12-17 23:59:07 +09:00
search_params.go Merge: Complete Mattermost Server with Community Enterprise 2025-12-17 23:59:07 +09:00
selector.go Merge: Complete Mattermost Server with Community Enterprise 2025-12-17 23:59:07 +09:00

go-faiss

Go Reference

Go bindings for Faiss, a library for vector similarity search.

Install

First you will need to build and install Faiss:

git clone https://github.com/blevesearch/faiss.git
cd faiss
cmake -B build -DFAISS_ENABLE_GPU=OFF -DFAISS_ENABLE_C_API=ON -DBUILD_SHARED_LIBS=ON .
make -C build
sudo make -C build install

On osX ARM64, the instructions needed to be slightly adjusted based on https://github.com/facebookresearch/faiss/issues/2111:

LDFLAGS="-L/opt/homebrew/opt/llvm/lib" CPPFLAGS="-I/opt/homebrew/opt/llvm/include" CXX=/opt/homebrew/opt/llvm/bin/clang++ CC=/opt/homebrew/opt/llvm/bin/clang cmake -B build -DFAISS_ENABLE_GPU=OFF -DFAISS_ENABLE_C_API=ON -DBUILD_SHARED_LIBS=ON .
// set FAISS_ENABLE_PYTHON to OFF in CMakeLists.txt to ignore libpython dylib
make -C build
sudo make -C build install

Building will produce the dynamic library faiss_c. You will need to install it in a place where your system will find it (e.g. /usr/local/lib on mac or /usr/lib on Linux). You can do this with:

sudo cp build/c_api/libfaiss_c.so /usr/local/lib

Now you can install the Go module:

go get github.com/blevesearch/go-faiss

Usage

API documentation is available at https://pkg.go.dev/github.com/DataIntelligenceCrew/go-faiss. See the Faiss wiki for more information.

Examples can be found in the _example directory.