Skip to content

Commit 0ffc0c2

Browse files
committed
🐛 Fix requirement missing and embedding fixed param
1 parent 0b7a997 commit 0ffc0c2

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

backend/requirements.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,7 @@ boto3==1.37.34
1414
botocore==1.37.34
1515
mcp==1.6.0
1616
psycopg2-binary==2.9.10
17-
PyJWT~=2.8.0
18-
supabase==2.15.0
17+
PyJWT>=2.8.0
18+
supabase>=2.15.0
19+
pydantic[email]>=2.11.1
20+
httpx[socks]>=0.28.1

sdk/nexent/core/models/embedding_model.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ def check_connectivity(self, timeout: float = 5.0) -> bool:
5151

5252

5353
class JinaEmbedding(BaseEmbedding):
54-
def __init__(self, model_name: str, base_url: str, api_key: str, embedding_dim: int = 1024):
54+
def __init__(self, api_key: str):
5555
"""Initialize JinaEmbedding with configuration from environment variables."""
5656
self.api_key = api_key
57-
self.api_url = base_url
58-
self.model = model_name
59-
self.embedding_dim = embedding_dim
57+
self.api_url = "https://api.jina.ai/v1/embeddings"
58+
self.model = "jina-clip-v2"
59+
self.embedding_dim = 1024
6060

6161
self.headers = {"Content-Type": "application/json", "Authorization": f"Bearer {self.api_key}"}
6262

sdk/pyproject.toml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,27 +31,29 @@ dependencies = [
3131
"elasticsearch==8.17.2",
3232
"exa_py>=1.9.1",
3333
"fastapi>=0.115.12",
34-
"httpx>=0.28.1",
34+
"httpx[socks]>=0.28.1",
3535
"numpy>=1.26.4",
3636
"openai>=1.69.0",
3737
"openpyxl>=3.1.5",
3838
"psycopg2-binary>=2.9.10",
39-
"pydantic>=2.11.1",
39+
"pydantic[email]>=2.11.1",
4040
"python-dotenv>=1.1.0",
4141
"PyYAML>=6.0.1",
4242
"Requests>=2.32.3",
4343
"rich>=13.9.4",
4444
"setuptools>=75.1.0",
4545
"starlette>=0.46.1",
46-
"unstructured>=0.17.2",
46+
"unstructured[all-docs]>=0.17.2",
4747
"uvicorn>=0.34.0",
4848
"websockets>=14.2",
49-
"smolagents==1.12.0",
49+
"smolagents[mcp]==1.12.0",
5050
"Pillow>=10.0.0",
5151
"transformers>=4.36.0",
5252
"torch>=2.0.0",
5353
"aiohttp>=3.1.13",
5454
"jieba>=0.42.1",
55+
"boto3>=1.37.34",
56+
"python-multipart>=0.0.20",
5557
]
5658

5759
[project.optional-dependencies]

0 commit comments

Comments
 (0)