Open makkarss929 opened 5 months ago
This doesn't allow us to reproduce. What is the listener
?
@blythed this is the listener
import sentence_transformers
from superduperdb import Model, vector
model = Model(
identifier='embedding',
object=sentence_transformers.SentenceTransformer('BAAI/bge-large-en-v1.5'),
encoder=vector(shape=(1024,)),
predict_method='encode', # Specify the prediction method
postprocess=lambda x: x.tolist(), # Define postprocessing function
batch_predict=True, # Generate predictions for a set of observations all at once
datatype=vector(shape=(1024,))
)
# Import the Listener class from the superduperdb module
from superduperdb import Listener
# Create a Listener instance with the specified model, key, and selection criteria
listener = Listener(
model=model, # The model to be used for listening
key='txt', # The key field in the documents to be processed by the model
select=table # The selection criteria for the documents
)
Contact Details [Optional]
makkarss929@gmail.com
System Information
system : mac m1 pro 14 inch db : postgres
What happened?
While creating vector index
Steps to reproduce
Relevant log output
No response