graphrag icon indicating copy to clipboard operation
graphrag copied to clipboard

[Feature Request]: Add Minimum Similarity Support During Entity Recall

Open hellopahe opened this issue 1 year ago • 0 comments

Do you need to file an issue?

  • [X] I have searched the existing issues and this feature is not already filed.
  • [ ] My model is hosted on OpenAI or Azure. If not, please look at the "model providers" issue and don't file a new one here.
  • [ ] I believe this is a legitimate feature request, not just a question. If this is a question, please use the Discussions area.

Is your feature request related to a problem? Please describe.

No response

Describe the solution you'd like

Add configuration support for entity search by minimum similarity during query phase. There is a similar solution in Elasticsearch

elastic.client.search(
            knn={
                    "field"         : "vector",
                    "query_vector"  : ee,
                    "k"             : 10,
                    "similarity"    : 0.85
                },
                fields=[],
                index=f"""""",
                size=1,
        )

ref: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-knn-query.html

Additional context

No response

hellopahe avatar Aug 15 '24 10:08 hellopahe