Skip to content

Commit

Permalink
fix: Fix text and refactor hybrid search
Browse files Browse the repository at this point in the history
  • Loading branch information
undo76 committed Dec 13, 2024
1 parent 2a14928 commit 8e6436e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tests/test_rerank.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""Test RAGLite's reranking functionality."""

import random
from functools import partial
from typing import TypeVar

import pytest
Expand All @@ -12,10 +11,8 @@
from raglite import (
RAGLiteConfig,
hybrid_search,
keyword_search,
rerank_chunks,
retrieve_chunks,
vector_search,
)
from raglite._database import Chunk

Expand Down Expand Up @@ -65,10 +62,6 @@ def test_reranker(
chunk_ids, _ = hybrid_search(
query,
config=raglite_test_config,
subsearches=[
partial(vector_search, max_chunks=40, config=raglite_test_config),
partial(keyword_search, max_chunks=40, config=raglite_test_config),
],
max_chunks=20,
)
# Retrieve the chunks.
Expand Down

0 comments on commit 8e6436e

Please sign in to comment.