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

New tutorial for: configurable elasticsearchdocumentstore #218

Closed
agemagician opened this issue Jul 6, 2023 · 1 comment
Closed

New tutorial for: configurable elasticsearchdocumentstore #218

agemagician opened this issue Jul 6, 2023 · 1 comment
Labels
new tutorial request for new tutorial

Comments

@agemagician
Copy link

Describe the tutorial you would like to see here
All the current tutorials assume the document store will not change over time.

For example, assume we have a single elastic database engine and need to build a single application where each user should ask a question and retrieve an answer. However, each user should have access to a different index "database" on the elastic search.
The current implementation assumes a fixed document store information during application run-time, like :
https://github.com/deepset-ai/haystack-tutorials/blob/main/tutorials/03_Scalable_QA_System.ipynb

It would be beneficial to have a tutorial where we can change the document store username, password, and index during application runtime. Otherwise, we must build a duplicate application for each user and each index.

Additional context
None

[X] I've checked the existing tutorials

@agemagician agemagician added the new tutorial request for new tutorial label Jul 6, 2023
@bilgeyucel
Copy link
Contributor

Hi @agemagician 👋 thank you for opening the issue. You have a nice problem here. Unfortunately, you cannot change username and password during the runtime. You can change the index but it will require re-connecting every time you change it.
I would recommend creating different DocumentStores rather than changing the credentials altogether. Another idea could be using metadata filtering and let Elastic handle the user management.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new tutorial request for new tutorial
Projects
None yet
Development

No branches or pull requests

2 participants