Skip to content

Add FAISS DocumentStore integration#2844

Open
GunaPalanivel wants to merge 2 commits intodeepset-ai:mainfrom
GunaPalanivel:integration/issue-717-faiss-document-store
Open

Add FAISS DocumentStore integration#2844
GunaPalanivel wants to merge 2 commits intodeepset-ai:mainfrom
GunaPalanivel:integration/issue-717-faiss-document-store

Conversation

@GunaPalanivel
Copy link
Contributor

@GunaPalanivel GunaPalanivel commented Feb 16, 2026

Description

Adds a new FAISSDocumentStore integration for Haystack 2.x.

Changes

Core Implementation

  • Introduced FAISSDocumentStore with full Haystack 2.x protocol support

Features

  • In-memory and persistent storage (FAISS index + JSON metadata)
  • Configurable FAISS index types
  • Vector similarity search
  • Comprehensive metadata filtering (comparison + logical operators)
  • Full document CRUD support

Persistence

  • FAISS index for vector storage
  • In-memory metadata dictionary
  • JSON serialization for metadata persistence

Error Handling

  • Proper validation with FilterError for invalid filter operations

Testing

  • 55 tests passing, 2 skipped

  • Uses Haystack’s standard DocumentStore test mixins

  • Covers:

    • Filtering logic
    • Persistence
    • Metadata operations
    • Edge cases

Run:

hatch run test:all
# 55 passed, 2 skipped

Checklist

  • Follows Haystack 2.x conventions
  • Comprehensive test coverage (standard mixins)
  • Formatted and linted (ruff)
  • Persistence verified
  • Metadata filtering validated
  • Documentation updated (docstrings + README)

- Remove duplicate _check_condition method (lines 111-148)
- Remove unreachable comparison operator checks (lines 348-355)
- Reduces codebase by 46 lines of unreachable code
- All tests still passing (55 passed, 2 skipped)
@GunaPalanivel GunaPalanivel requested a review from a team as a code owner February 16, 2026 14:53
@GunaPalanivel GunaPalanivel requested review from davidsbatista and removed request for a team February 16, 2026 14:53
@github-actions github-actions bot added the type:documentation Improvements or additions to documentation label Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Integration] Request to support FAISSDocumentStore in 2.x

1 participant