Learn the Superlinked lingo and core concepts
Query
: defines the index you want it to search, and you can add Params here (details in our notebook).find
: tells it what to look for.similar
: tells it how to identify relevant results (details in notebook).select_all
: returns all the stored fields, without this clause, it will only return the id(s) (details in notebook).with_vector
to search with an embedded vector of a specific element of your data (see details in notebook)).
body | id | |
---|---|---|
0 | That is a very happy person | happy_person |
1 | That is a happy dog | happy_dog |
2 | Today is a sunny day | sunny_day |
body | id | |
---|---|---|
0 | That is a happy dog | happy_dog |
1 | That is a very happy person | happy_person |
2 | Today is a sunny day | sunny_day |