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

Calling .reindex() on Application instance #547

Closed
hakimkhalafi opened this issue Sep 7, 2023 · 5 comments
Closed

Calling .reindex() on Application instance #547

hakimkhalafi opened this issue Sep 7, 2023 · 5 comments
Assignees
Milestone

Comments

@hakimkhalafi
Copy link

Embeddings instances have .reindex(), I would like to also have this for Application instances

@davidmezzetti davidmezzetti self-assigned this Sep 7, 2023
@davidmezzetti davidmezzetti added this to the v6.1.0 milestone Sep 7, 2023
@hakimkhalafi
Copy link
Author

Another thing: Application.search does not have the new weights= option

@davidmezzetti
Copy link
Member

Do you have an Application instance in Python or are you connecting via an API? If it's an API, which language are you using?

@hakimkhalafi
Copy link
Author

hakimkhalafi commented Sep 13, 2023

in python, looks like this:

settings = {'path': bot_locator, 'writable': True, 'embeddings': {'path': base_model, 'content': True, 'gpu': False, 'hybrid': True,'sqlite': {'wal': True}}}
new_embedding = Application(yaml.safe_dump(settings))
embeddings[bot_locator] = new_embedding

@akset2X
Copy link

akset2X commented Sep 14, 2023

I am using API server of txtai with golang. How can I do reindex using API, I guess there is no separate API endpoint for reindex currently in txtai? Kindly let me know.

@davidmezzetti
Copy link
Member

There is no method currently, that is what this issue will add. This method would need to be added to the client libraries.

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

3 participants