-
Notifications
You must be signed in to change notification settings - Fork 502
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
feat: add elastic search wrapper #509
base: dev
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: AvikantSrivastava The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
def rebuild(self, ids=None) -> bool: | ||
pass | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SimFG @cxie @xiaofan-luan
do we need a rebuild method for Elastic Search?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the index can be updated as the data changes, rebuild does not need to be implemented. If not, say faiss, you need to implement
top_k: int = 1, | ||
namespace: str = "", | ||
): | ||
self._client = Elasticsearch("http://localhost:9200") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SimFG @cxie @xiaofan-luan
I am currently running a local docker image of elastic search. What should be the hostname for the production use cases here?
Also, a point to note, I have used a http
URL since, TLS was required to use a https
with Elastic Search
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps through a variable, let the user pass the url parameter by himself. The default value of the parameter is: "http://localhost:9200"
@AvikantSrivastava please make the dev branch as the target branch |
done |
@AvikantSrivastava hi, you need to check the failed process, like pylint and unit test, and add some unit test cases for the elastic search vector store. |
No description provided.