Skip to content

Commit d5056b0

Browse files
CopilotMte90
andcommitted
Remove unused code after llama-index integration
Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
1 parent c1748cc commit d5056b0

2 files changed

Lines changed: 0 additions & 18 deletions

File tree

ai/analyzer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
load_sqlite_vector_extension as _load_sqlite_vector_extension,
1616
ensure_chunks_and_meta as _ensure_chunks_and_meta,
1717
insert_chunk_vector_with_retry as _insert_chunk_vector_with_retry,
18-
search_vectors as _search_vectors,
1918
get_chunk_text as _get_chunk_text,
2019
)
2120
from .openai import call_coding_api, EmbeddingClient

ai/llama_integration.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -67,20 +67,3 @@ def llama_index_search(query: str, database_path: str, top_k: int = 5) -> List[D
6767
return []
6868

6969

70-
def llama_index_retrieve_documents(query: str, database_path: str, top_k: int = 5,
71-
search_func=None, get_chunk_func=None) -> List[Document]:
72-
"""
73-
Legacy function - now redirects to llama_index_search.
74-
75-
Args:
76-
query: Search query text
77-
database_path: Path to project database
78-
top_k: Number of results to return
79-
search_func: Deprecated - not used
80-
get_chunk_func: Deprecated - not used
81-
82-
Returns:
83-
List of Document objects with chunk text and metadata
84-
"""
85-
return llama_index_search(query, database_path, top_k)
86-

0 commit comments

Comments
 (0)