Skip to content

Commit

Permalink
refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
omar-sol committed Jul 28, 2024
1 parent e9ec472 commit 5a84661
Show file tree
Hide file tree
Showing 8 changed files with 358 additions and 531 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ colorFrom: gray
colorTo: pink
sdk: gradio
sdk_version: 4.39.0
app_file: scripts/gradio-ui.py
app_file: scripts/main.py
pinned: false
---

Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ pydantic-core==2.20.1
pydispatcher==2.0.7
pydub==0.25.1
pygments==2.18.0
pymongo==4.8.0
pyopenssl==24.2.1
pyparsing==3.1.2
pypdf==4.3.1
Expand Down
4 changes: 0 additions & 4 deletions scripts/custom_retriever.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import logging
import time
from typing import List

Expand All @@ -8,9 +7,6 @@
from llama_index.core.schema import NodeWithScore, TextNode
from llama_index.postprocessor.cohere_rerank import CohereRerank

logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.INFO)


class CustomRetriever(BaseRetriever):
"""Custom retriever that performs both semantic search and hybrid search."""
Expand Down
Loading

0 comments on commit 5a84661

Please sign in to comment.