feat: Initial remote table implementation for rust (#1024)

This will eventually replace the remote table implementations in python
and node.
This commit is contained in:
Weston Pace
2024-02-29 10:55:49 -08:00
parent 45b5b66c82
commit 629c622d15
18 changed files with 376 additions and 21 deletions

View File

@@ -103,9 +103,9 @@ class InstructorEmbeddingFunction(TextEmbeddingFunction):
# convert_to_numpy: bool = True # Hardcoding this as numpy can be ingested directly
source_instruction: str = "represent the document for retrieval"
query_instruction: (
str
) = "represent the document for retrieving the most similar documents"
query_instruction: str = (
"represent the document for retrieving the most similar documents"
)
@weak_lru(maxsize=1)
def ndims(self):

View File

@@ -12,6 +12,7 @@
# limitations under the License.
"""Full text search index using tantivy-py"""
import os
from typing import List, Tuple

View File

@@ -277,6 +277,7 @@ class RemoteTable(Table):
f = Future()
f.set_result(self._conn._client.query(name, q))
return f
else:
def submit(name, q):

View File

@@ -12,6 +12,7 @@
# limitations under the License.
"""Schema related utilities."""
import pyarrow as pa