euriai 0.3.29__py3-none-any.whl → 0.3.30__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- euriai/euri_embed.py +11 -2
- {euriai-0.3.29.dist-info → euriai-0.3.30.dist-info}/METADATA +1 -1
- {euriai-0.3.29.dist-info → euriai-0.3.30.dist-info}/RECORD +6 -6
- {euriai-0.3.29.dist-info → euriai-0.3.30.dist-info}/WHEEL +0 -0
- {euriai-0.3.29.dist-info → euriai-0.3.30.dist-info}/entry_points.txt +0 -0
- {euriai-0.3.29.dist-info → euriai-0.3.30.dist-info}/top_level.txt +0 -0
euriai/euri_embed.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import requests
|
2
2
|
import numpy as np
|
3
|
-
from typing import List, Optional
|
3
|
+
from typing import List, Optional, Callable, Any
|
4
4
|
from llama_index.core.embeddings import BaseEmbedding
|
5
5
|
|
6
6
|
class EuriaiLlamaIndexEmbedding(BaseEmbedding):
|
@@ -38,6 +38,15 @@ class EuriaiLlamaIndexEmbedding(BaseEmbedding):
|
|
38
38
|
"""Get embedding for a single text."""
|
39
39
|
return self._post_embedding([text])[0]
|
40
40
|
|
41
|
+
def get_query_embedding(self, query: str) -> List[float]:
|
42
|
+
"""Get embedding for a query string."""
|
43
|
+
return self.get_text_embedding(query)
|
44
|
+
|
41
45
|
def get_text_embeddings(self, texts: List[str]) -> List[List[float]]:
|
42
46
|
"""Get embeddings for multiple texts."""
|
43
|
-
return self._post_embedding(texts)
|
47
|
+
return self._post_embedding(texts)
|
48
|
+
|
49
|
+
async def aget_query_embedding(self, query: str) -> List[float]:
|
50
|
+
"""Async version of get_query_embedding."""
|
51
|
+
# We don't support async, so raise NotImplementedError
|
52
|
+
raise NotImplementedError("Async embeddings not supported")
|
@@ -3,11 +3,11 @@ euriai/cli.py,sha256=hF1wiiL2QQSfWf8WlLQyNVDBd4YkbiwmMSoPxVbyPTM,3290
|
|
3
3
|
euriai/client.py,sha256=USiqdMULgAiky7nkrJKF3FyKcOS2DtDmUdbeBSnyLYk,4076
|
4
4
|
euriai/embedding.py,sha256=z-LLKU68tCrPi9QMs1tlKwyr7WJcjceCTkNQIFMG6vA,1276
|
5
5
|
euriai/euri_chat.py,sha256=tuNhwyyzZTSJjX4Su8XBftp7a5YtsalerglNhho2fpA,3573
|
6
|
-
euriai/euri_embed.py,sha256=
|
6
|
+
euriai/euri_embed.py,sha256=hk9OSMIT3ZxvMbajBpUxUsCGUOk-d3WXYvariBQ-jaA,2143
|
7
7
|
euriai/langchain_embed.py,sha256=OXWWxiKJ4g24TFgnWPOCZvhK7G8xtSf0ppQ2zwHkIPM,584
|
8
8
|
euriai/langchain_llm.py,sha256=D5YvYwV7q9X2_vdoaQiPs7tNiUmjkGz-9Q-7M61hhkg,986
|
9
|
-
euriai-0.3.
|
10
|
-
euriai-0.3.
|
11
|
-
euriai-0.3.
|
12
|
-
euriai-0.3.
|
13
|
-
euriai-0.3.
|
9
|
+
euriai-0.3.30.dist-info/METADATA,sha256=-3VaAOjaXrKWPF86TjoHw2Zx4lT8H78EE0zxG3fmk5Q,3249
|
10
|
+
euriai-0.3.30.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
11
|
+
euriai-0.3.30.dist-info/entry_points.txt,sha256=9OkET8KIGcsjQn8UlnpPKRT75s2KW34jq1__1SXtpMA,43
|
12
|
+
euriai-0.3.30.dist-info/top_level.txt,sha256=TG1htJ8cuD62MXn-NJ7DVF21QHY16w6M_QgfF_Er_EQ,7
|
13
|
+
euriai-0.3.30.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|