MacFJA / php-redisearch

PHP Client for RediSearch
MIT License
66 stars 9 forks source link

Feature: any plans to make an addVectorField function? #60

Closed inpresif closed 1 year ago

inpresif commented 1 year ago

EDIT: Spoke too soon. You're way ahead of me I see it is already there. Excusez.

In the recent OpenAI Rediseacrh for Python I noticed the function:

text_embedding = VectorField("content_vector",
    "FLAT", {
        "TYPE": "FLOAT32",
        "DIM": VECTOR_DIM,
        "DISTANCE_METRIC": DISTANCE_METRIC,
        "INITIAL_CAP": VECTOR_NUMBER,
    }
)

Any plans on adding this? I'm trying to do so, if it will work eventually I'll update. However if it is already in progress I won't spend days fighting over it;-).

Cheers.