Note that Lucene's demo package (IndexFiles.java, SearchFiles.java) also
show examples of how to index and search KNN vectors.
Mike McCandless
http://blog.mikemccandless.com
On Thu, Mar 2, 2023 at 4:46 AM Michael Wechner
wrote:
> Hi Marcos
>
> The indexing looks kind of
>
> Document doc =new
Hi Marcos
The indexing looks kind of
Document doc =new Document();
float[] vector = getEmbedding(text);
FieldType vectorFieldType = KnnVectorField.createFieldType(vector.length,
VectorSimilarityFunction.COSINE);
KnnVectorField vectorField =new KnnVectorField("my_vector_field", vector,
vectorFi
Hi all,
I'm willing to use Vector Search with Lucene.
I have vectors created for queries and documents outside Lucene.
I would like to upload the document vectors to a Lucene index, Then use
Lucene to filter the documents (like classical search) and rank the
remaining products with the Vectors.