Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

Ruff fixes

Isaac Miller860fca0633d8
diff --git a/dspy/retrieve/lancedb_rm.py b/dspy/retrieve/lancedb_rm.py
index aa0b9a1a0..8040074ee 100644
--- a/dspy/retrieve/lancedb_rm.py
+++ b/dspy/retrieve/lancedb_rm.py
@@ -3,7 +3,7 @@ Retriever model for LanceDB
Author: Prashant Dixit (@PrashantDixit0)
"""
-from typing import List, Optional, Union
+from typing import List, Union
import backoff
import lancedb.table
@@ -22,11 +22,8 @@ if lancedb is None:
"The lancedb library is required to use LancedbRM. Install it with `pip install dspy-ai[lancedb]`",
)
-from lancedb.embeddings import EmbeddingFunctionRegistry, get_registry
-from lancedb.pydantic import LanceModel, Vector
import openai
-import os
try:
OPENAI_LEGACY = int(openai.version.__version__[0]) == 0