-
Notifications
You must be signed in to change notification settings - Fork 0
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: get key for role name populate in UI, Opus, update requirements, #1
Open
madtank
wants to merge
10
commits into
hand
Choose a base branch
from
main
base: hand
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sync branch
Add Local FAISS Indexing for Persistent File Handling and Enhance Chatbot Responsiveness
* Integrate Streamlit for Incremental Indexing in bedrock_indexer.py Transforms `bedrock_indexer.py` into a Streamlit app, enabling file uploads for indexing without reindexing the entire index each time. - Integrates Streamlit UI components for file uploading, allowing multiple files to be selected and uploaded through the app. - Implements a check for an existing FAISS index file before adding new documents, enabling incremental indexing of uploaded files. - Modifies the `index_directory` function to accept uploaded files directly from the Streamlit UI, processing them for indexing. - Adds a main function to serve as the entry point for the Streamlit app, featuring a title, file uploader, and an indexing button with success or error messages based on the operation outcome. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/madtank/Bedrock-ChatBot-with-LangChain-and-Streamlit?shareId=4bdd59be-9cbf-4c37-806f-3ab92f133f92). * bedrock indexer * updating doc indexer * bedrock embedder * updating RAG * new RAG feature * adding new RAG feature
* Replace SerpAPI with DuckDuckGo Search Related to #8 Replace `SerpAPIWrapper` with `DuckDuckGo` search functionality in `bedrock/bedrock_chatbot.py`. - Removes the import statement for `SerpAPIWrapper`. - Adds import statements for `DuckDuckGoSearchRun` and `DuckDuckGoSearchResults` from `langchain_community.tools`. - Updates the `web_or_local` function to use `DuckDuckGoSearchRun` for web searches, replacing the previous `SerpAPIWrapper` implementation. - Maintains the rest of the functionality as is, ensuring that the change is focused solely on the search functionality replacement. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/madtank/Bedrock-ChatBot-with-LangChain-and-Streamlit/issues/8?shareId=9c5e1d0b-3cde-4878-bdeb-d2fabfeb71e3). * updating web search to ddg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
This pull request includes the following changes:
Updated
.gitignore
bedrock/.env
to the ignore list.Created
.env_example
.env_example
with a comment and a new environment variableSERPAPI_API_KEY
.Refactored
bedrock_chatbot.py
role_prompt_text
based on the selected role.role_prompt
dictionary, along with the "Custom" option.Optimized
config.yml
temperature
,top_p
, andtop_k
in the existing model configurations.Enhanced
role_prompt.py
Updated dependencies in
requirements.txt
pdfplumber
andpython-dotenv
.These changes aim to improve the functionality, maintainability, and configuration options of the chatbot application.