Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redis as a vector database quick start guide #250

Open
tshaiman opened this issue Mar 13, 2024 · 1 comment
Open

Redis as a vector database quick start guide #250

tshaiman opened this issue Mar 13, 2024 · 1 comment

Comments

@tshaiman
Copy link

whem trying to create the index using the command on the tutorial

FT.CREATE idx:bikes_vss ON JSON 
  PREFIX 1 bikes: SCORE 1.0 
  SCHEMA 
    $.model TEXT WEIGHT 1.0 NOSTEM 
    $.brand TEXT WEIGHT 1.0 NOSTEM 
    $.price NUMERIC 
    $.type TAG SEPARATOR "," 
    $.description AS description TEXT WEIGHT 1.0 
    $.description_embeddings AS vector VECTOR FLAT 6 TYPE FLOAT32 DIM 768 DISTANCE_METRIC COSINE

you get an error :
"Unknown argument ``"

image

@dwdougherty
Copy link
Collaborator

Have you tried running the command all on a single line, as follows?

FT.CREATE idx:bikes_vss ON JSON PREFIX 1 bikes: SCORE 1.0 SCHEMA $.model TEXT WEIGHT 1.0 NOSTEM $.brand TEXT WEIGHT 1.0 NOSTEM $.price NUMERIC $.type TAG SEPARATOR "," $.description AS description TEXT WEIGHT 1.0 $.description_embeddings AS vector VECTOR FLAT 6 TYPE FLOAT32 DIM 768 DISTANCE_METRIC COSINE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants