Add authentication setup and configuration details to README; create secrets.toml and .env.example files #83
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces authentication setup, API key configuration, and significant updates to the application's logic, including fallback behavior for the
get_ragchain
function. The most important changes include adding configuration instructions for Auth0 and API keys, replacing deprecated Streamlit methods, and enhancing the retrieval-augmented generation (RAG) chain with a fallback to an LLM-only approach.Authentication and Configuration:
README.md
with instructions for setting up Auth0 credentials insecrets.toml
and API keys in.env
for MistralAI and Hugging Face..env.example
for API keys andsecrets.toml
for Auth0 settings. [1] [2]Streamlit Authentication Updates:
Retrieval-Augmented Generation (RAG) Enhancements:
get_ragchain
insrc/mvt/main.py
to include a fallback mechanism. If the FAISS index fails to load, the function now falls back to an LLM-only approach, ensuring robustness.get_ragchain
function for better readability and logical flow. [1] [2]@gcapuzzi Could you please review this PR? I’d appreciate any suggestions or feedback you may have.