Skip to content

provide language support#321

Draft
Niharika0306 wants to merge 1 commit intoIBM:mainfrom
Niharika0306:language_support
Draft

provide language support#321
Niharika0306 wants to merge 1 commit intoIBM:mainfrom
Niharika0306:language_support

Conversation

@Niharika0306
Copy link
Contributor

This PR provides functionality for language_detection and prompt selection based on language.

Signed-off-by: Niharika Gurram <niharika.gurram1@ibm.com>
embedder = get_embedder(emb_model, emb_endpoint, max_tokens)
user_emb = embedder.embed_query(query)
ref_texts = {
"en": "This is an English sentence.",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will move these centroids( eng and german ref statements) to settings.json, and will see if I can store the embedding computation in memory somewhere as part of the vectorstore, instead of computing for every query.

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

Successfully merging this pull request may close these issues.

1 participant