Skip to content

Commit

Permalink
Consolidating Changes: Modifications, Additions, Movements, and Delet…
Browse files Browse the repository at this point in the history
…ions

Consolidating Changes from Original Repository

### Changes made in this repository

Here is the updated list with duplicate lines removed and a `-` added to every line:

- Refactor print_response() and Update main() for Enhanced Paragraph Handling and Logging
- Add the new functions get_slm_ms_phi3_mini_sentiment_analysis_model() and get_chatroom_paragraphs_format() to the functions.py file
- Add a new variable SLM_MS_PHI3_MINI_SENTIMENT_ANALYSIS_MODEL to hold the value of the model used for sentiment analysis by the "transformers" library from Hugging Face in the commbase-genai-slm-ollama-phi3-mini* bundles.
- Update the bundle name in the file header
- Add brand new configuration variable CHATROOM_PARAGRAPHS_FORMAT set to "one_participant_per_paragraph" by default
- Ask the genai to generate two sentences to test the new configuration variable CHATROOM_PARAGRAPHS_FORMAT
- bundles/commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-picone/ renamed as bundles/commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-pinecone/
- Add the first function parameter 'total_paragraphs', which receives a number of paragraphs to speak out loud with the TTS engine increased when the configuration variable CHATROOM_PARAGRAPHS_FORMAT equals one_participant_per_paragraph
- Fix the usage echo to five arguments by adding the option origin
- Fix the word Pinecone in the main readme doc
- Update file headers
- Add new Language Translation Capabilities information to the README
- Add new configuration variable CHATROOM_PARAGRAPHS_FORMAT to specify how the participant paragraphs are going to display in the chat pane
- Add the new bundle commbase-text-translator-phi3-mini to the project structure
- Organize response paragraphs in a single string
- Merge branch 'main' of github.com:estebanways/commbase
- Run the function print_response(response) after sending notifications to hardware to sync all the responses as possible without adding extra synchronization code
- Move the function print_response(response) after sending notifications to hardware to sync all the responses as possible without adding extra synchronization code
- Make script files executable using chmod
- Make work phi3_mini_translate_language.py
- Reorganize imports by category
- Remove main() from translator file
- Make work phi3_mini_translate_language.py with genai phi3-mini-nomemory and add it to phi3 genais with memory
- Modify the model order with the phrase "(but do not include any explanation)" so the Phi3 mini 128k instruction model acts like the 4k model
- Fix file headers
- Rename python files using underscores instead of hyphens
- Add new file phi3_translate_to_english.py as a tool to translate string values stored in variables to english
- Add new file translate_to_english_with_phi3.py as a tool to translate string values stored in variables to english
- Remove single quotes
- Create the bundles/commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-picone readme description
- Create the bundles/commbase-genai-slm-ollama-phi3-mini-nomemory readme description
- Create the bundles/commbase-genai-slm-ollama-phi3-mini-memory readme description
- Update example usage
- Add bundle commbase-text-translator-phi3-mini to main readme
- Add license file
- Add new sections to readme
- Fix code indentation
- Fix image size
- Fix image
- Add new file commbase_text_translator_phi3_mini_file.py to be able to translate entire text files
- Replace backticks with code snippets
- Add new translator bundle commbase-text-translator-phi3-mini
- Add new function response_sentiment_action(response)
- Fix title
- Fix phi3 model genai repository jpeg images

### Changes by file

Here's a summary of the changes organized by file:

#### README.md
- Fixed typographical errors and updated references from "Picone" to "Pinecone".
- Updated title and description to reflect new project names and functionalities, including sentiment analysis and chatroom formatting.
- Added new Language Translation Capabilities information.
- Revised description to match new project scope, especially for `commbase-genai-slm-ollama-phi3-mini-nomemory`.
- Added new bundle `commbase-text-translator-phi3-mini` to the README.

#### User's Guide.md
- Added configurations for sentiment analysis and chatroom paragraph formatting.

#### `assistant_discourse.sh` and `assistant_discourse_from_language_model.sh`
- Updated to include new usage instructions and handle additional arguments.

#### `commbase.conf` and `commbase.conf.default`
- Modified to include:
  - `SLM_MS_PHI3_MINI_SENTIMENT_ANALYSIS_MODEL`
  - `CHATROOM_PARAGRAPHS_FORMAT`

#### **commbase-genai-slm-ollama-phi3-mini-memory.py**

- **Refactored `print_response()` Function**:
   - **Paragraph Handling**: Updated to manage different paragraph formats based on `get_chatroom_paragraphs_format()`. The function now splits responses into paragraphs using both double and single newlines to adapt to various chatroom styles.
   - **Enhanced Formatting**: Improved formatting logic to support diverse chatroom paragraph styles, ensuring that responses are organized and logged accurately.
   - **Documentation**: Comments and docstrings were updated to reflect the new functionality and provide clear explanations of the paragraph formatting process.

- **Modified `response_sentiment_action()`**:
   - **Sentiment Analysis Integration**: Integrated the retrieval of the sentiment analysis model via `get_slm_ms_phi3_mini_sentiment_analysis_model()`, allowing the function to utilize the latest sentiment analysis tools.
   - **Updated Documentation**: Docstring revised for clarity, detailing the sentiment analysis and hardware notification actions to improve understanding and maintainability.

- **Updated `text_to_speech()` Function**:
   - **New Parameter**: Added `returned_total_paragraphs` to accommodate changes in `main()` that involve paragraph count. This parameter supports the new functionality for handling paragraph-based text-to-speech synthesis.

- **Enhanced `main()` Function**:
   - **Large Response Handling**: Added logic to handle large responses by checking word count. This ensures that the system can manage extensive responses efficiently.
   - **Hardware Notification**: Incorporated functionality to notify hardware when neutral sentiment is detected, improving interaction responsiveness.
   - **Paragraph Count Handling**: Included logic to manage paragraph counts during text-to-speech synthesis, ensuring consistency with the updated `print_response()` function.

- **General Improvements**:
   - **Comments and Docstrings**: Refined across functions to enhance clarity and consistency, making the codebase easier to understand and maintain.
   - **Debugging and Error Handling**: Added debug comments and updated file operations to improve logging and error handling, ensuring better diagnostics and reliability.

#### **commbase-genai-slm-ollama-phi3-mini-nomemory.py**

- **Refactored `print_response()` Function**:
   - **Paragraph Handling**: Modified to handle different paragraph formats using `get_chatroom_paragraphs_format()`. The function now effectively manages paragraph splitting and formatting based on the updated chatroom styles.
   - **Formatting Enhancements**: Improved response formatting to support various chatroom styles and ensure accurate logging.
   - **Documentation Updates**: Comments and docstrings were updated to describe the new functionality and processing logic for better clarity.

- **Modified `response_sentiment_action()`**:
   - **Sentiment Analysis Integration**: Updated to use `get_slm_ms_phi3_mini_sentiment_analysis_model()` for retrieving the sentiment analysis model, enhancing its capability to perform sentiment-related actions.
   - **Documentation**: Docstring revised to clarify the purpose and behavior of sentiment analysis and hardware notification actions.

- **Updated `text_to_speech()` Function**:
   - **New Parameter**: Incorporated `returned_total_paragraphs` to align with the changes in `main()`, facilitating improved paragraph-based text-to-speech functionality.

- **Enhanced `main()` Function**:
   - **Response Management**: Added logic for managing large responses by checking word counts, and implemented hardware notifications for neutral sentiments.
   - **Paragraph Handling**: Included functionality to handle paragraph counts in text-to-speech synthesis, ensuring that the updated `print_response()` functionality is supported.

- **General Improvements**:
   - **Comments and Docstrings**: Enhanced for better clarity and consistency across functions, making the code easier to follow.
   - **Debugging and Error Handling**: Added debug comments and updated error handling to improve the reliability and maintainability of the codebase.

### Deleted Files

bundles/commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-picone/COPYING
bundles/commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-picone/README.md
bundles/commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-picone/commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-picone.jpg
bundles/commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-picone/config.py
bundles/commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-picone/create_and_configure_a_new_pinecone_index.py
bundles/commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-picone/create_and_configure_pinecone_index.py
bundles/commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-picone/create_embeddings_and_upsert_data.py
bundles/commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-picone/examples/README.md
bundles/commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-picone/file_paths.py
bundles/commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-picone/functions.py
bundles/commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-picone/load_a_dataset_with_pandas.py
bundles/commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-picone/making_queries.py
bundles/commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-picone/resources/src/chat_log_20240609203647_4314.txt
bundles/commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-picone/resources/src/chat_log_20240609220435_18072.txt
bundles/commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-picone/save_chat_files_as_json_dataset.py
bundles/commbase-genai-slm-ollama-phi3-mini-memory/commbase-genai-slm-ollama-phi3-mini-memory.py
bundles/commbase-genai-slm-ollama-phi3-mini-nomemory/commbase-genai-slm-ollama-phi3-mini-nomemory.py

### New Files

bundles/commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-pinecone/
bundles/commbase-genai-slm-ollama-phi3-mini-memory/commbase_genai_slm_ollama_phi3_mini_memory.py
bundles/commbase-genai-slm-ollama-phi3-mini-memory/phi3_mini_translate_language.py
bundles/commbase-genai-slm-ollama-phi3-mini-nomemory/commbase_genai_slm_ollama_phi3_mini_nomemory.py
bundles/commbase-genai-slm-ollama-phi3-mini-nomemory/phi3_mini_translate_language.py
bundles/commbase-text-translator-phi3-mini/

### Conclusion

Overall, the updates have consolidated and enhanced the repository’s capabilities, making it more robust and easier to maintain while expanding its functionality to handle more diverse use cases and configurations.
  • Loading branch information
estebanways committed Jul 19, 2024
1 parent c61a6a1 commit 136d086
Show file tree
Hide file tree
Showing 45 changed files with 2,737 additions and 613 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,13 @@ An app designed to facilitate seamless interaction with the powerful OpenAI's GP

Interacts with the Commbase platform by generating AI-driven responses using the Ollama API with the Phi3 mini model from Microsoft. This is a midweight implementation with session or short-term memory for language generation. [More Info](/bundles/commbase-genai-slm-ollama-phi3-mini-memory/)

<a href="./bundles/commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-picone/">
<img align="center" alt="commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-picone" width="5%" src="./bundles/commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-picone/commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-picone.jpg"/>
<a href="./bundles/commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-pinecone/">
<img align="center" alt="commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-pinecone" width="5%" src="./bundles/commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-pinecone/commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-pinecone.jpg"/>
</a>

**commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-picone**
**commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-pinecone**

Interacts with the Commbase platform by generating AI-driven responses using the Ollama API with the Phi3 mini model from Microsoft. This is a heavyweight implementation with memory for language generation, featuring remote RAG and Picone for persistent memory. [More Info](/bundles/commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-picone/)
Interacts with the Commbase platform by generating AI-driven responses using the Ollama API with the Phi3 mini model from Microsoft. This is a heavyweight implementation with memory for language generation, featuring remote RAG and Pinecone for persistent memory. [More Info](/bundles/commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-pinecone/)

<a href="./bundles/commbase-genai-slm-ollama-phi3-mini-nomemory/">
<img align="center" alt="commbase-genai-slm-ollama-phi3-mini-nomemory" width="5%" src="./bundles/commbase-genai-slm-ollama-phi3-mini-nomemory/commbase-genai-slm-ollama-phi3-mini-nomemory.jpg"/>
Expand Down Expand Up @@ -263,7 +263,7 @@ This project is coded and organized like this:
│ │ └── examples
│ ├── commbase-genai-slm-ollama-phi3-mini-memory
│ │ └── examples
│ ├── commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-picone
│ ├── commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-pinecone
│ │ ├── examples
│ │ └── resources
│ │ └── src
Expand All @@ -278,6 +278,8 @@ This project is coded and organized like this:
│ ├── commbase-stt-whisper-reactive-p
│ │ ├── client_data
│ │ └── examples
│ ├── commbase-text-translator-phi3-mini
│ │ └── examples
│ ├── commbase-tts-gTTS
│ │ └── examples
│ ├── commbase-tts-pyttsx3
Expand Down Expand Up @@ -372,7 +374,7 @@ This project is coded and organized like this:
├── conversation_logs
├── knowledge_base
├── memory_store
│ ├── commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-picone
│ ├── commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-pinecone
│ │ ├── build
│ │ └── src
│ └── ...
Expand All @@ -385,7 +387,7 @@ Core technologies directly involved in the application's functionality.

### Required in The Default Installation

[OpenAI Whisper](https://openai.com/research/whisper) | [Ollama](https://ollama.com) | [Microsoft Phi3](https://huggingface.co/microsoft/Phi-3-mini-4k-instruct) | [Picone](https://www.pinecone.io/) | [PyAudio](https://people.csail.mit.edu/hubert/pyaudio/) | [Awk](https://www.gnu.org/software/gawk/) | [Git](https://git-scm.com) | [Jq](https://stedolan.github.io/jq/) | [SSH](https://www.openssh.com) | [Flask](https://flask.palletsprojects.com)| [NumPy](https://numpy.org) | [Pandas](https://pandas.pydata.org) | [Pyttsx3](https://pypi.org/project/pyttsx3/) | [FFmpeg](https://ffmpeg.org) | [GNU/Linux](https://www.gnu.org/gnu/linux-and-gnu.html) | [Systemd](https://systemd.io/) | [Bash](https://www.gnu.org/software/bash/) | [Bc](https://www.gnu.org/software/bc/) | [Python](https://python.org) | [Oh My Tmux](https://github.com/gpakosz/.tmux) | [Tmux](https://github.com/tmux/tmux)
[OpenAI Whisper](https://openai.com/research/whisper) | [Ollama](https://ollama.com) | [Microsoft Phi3](https://huggingface.co/microsoft/Phi-3-mini-4k-instruct) | [Pinecone](https://www.pinecone.io/) | [PyAudio](https://people.csail.mit.edu/hubert/pyaudio/) | [Awk](https://www.gnu.org/software/gawk/) | [Git](https://git-scm.com) | [Jq](https://stedolan.github.io/jq/) | [SSH](https://www.openssh.com) | [Flask](https://flask.palletsprojects.com)| [NumPy](https://numpy.org) | [Pandas](https://pandas.pydata.org) | [Pyttsx3](https://pypi.org/project/pyttsx3/) | [FFmpeg](https://ffmpeg.org) | [GNU/Linux](https://www.gnu.org/gnu/linux-and-gnu.html) | [Systemd](https://systemd.io/) | [Bash](https://www.gnu.org/software/bash/) | [Bc](https://www.gnu.org/software/bc/) | [Python](https://python.org) | [Oh My Tmux](https://github.com/gpakosz/.tmux) | [Tmux](https://github.com/tmux/tmux)

### Optional

Expand Down
25 changes: 18 additions & 7 deletions assets/docs/User's Guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,11 @@ The default version of the file **commbase.conf** contains the next values:
- Example value:
- `english` (Default): When chosen, sets the default LLM language to English.

- **SLM_MS_PHI3_MINI_SENTIMENT_ANALYSIS_MODEL**:
- Description: Describes the model used for sentiment analysis by the **transformers** library from Hugging Face in the commbase-genai-slm-ollama-phi3-mini bundles.
- Possible values:
- `distilbert/distilbert-base-uncased-finetuned-sst-2-english` (Default): When this Text Classification model is selected, it is used to analyze the sentiment of the assistant's response. This model is a fine-tuned checkpoint of DistilBERT-base-uncased, specifically fine-tuned on the SST-2 dataset. It achieves an accuracy of 91.3% on the development set. For comparison, the BERT-base-uncased model achieves an accuracy of 92.7% on the same set.

- **CURRENT_MODE**:
- Description: The current use mode your app is running on. Modes are defined in the control patterns file. The default location for this file is **bundles/libcommbase/resources/i18n/control_patterns/$STT_ENGINE_MODEL_DIRECTORY/$STT_ENGINE_MODEL_SUBDIRECTORY/$COMMBASE_LANG.json**. You can change from any mode to another by changing the value of this variable. The action will update the mode component status on screen.
- Example values:
Expand Down Expand Up @@ -956,6 +961,12 @@ The default version of the file **commbase.conf** contains the next values:
- Possible values: True or False.
- Example value: `False` (Default): Set to false, the STT engine does not display the speech processing time in the STT engine pane after every processing is complete.

- **CHATROOM_PARAGRAPHS_FORMAT**:
- Description: Specifies whether the chat participant paragraphs are displayed in the chatroom.
- Possible values:
- **`one_participant_per_paragraph` (Default):** Each separate paragraph or sentence in the response is logged individually with new participant name tags in the chatroom for enhanced clarity.
- **`single_paragraphs_string`:** The entire response is logged as a single paragraph string with a single participant name tag in the chatroom, regardless of the quantity of paragraphs or sentences, to save space.

- **CHAT_LOG_FILE**:
- Possible values:
- `/data/.chat_log.txt` (Default): The chat log file likely stores a record of interactions or conversations.
Expand Down Expand Up @@ -1295,20 +1306,20 @@ CHAT_MEMORY_FILE="data/.chat_memory.txt"
- Example value:
- `3600` (Default): Set to 3600 seconds (equivalent to 1 hour and 0 minutes), indicates that the system checks for pending tasks approximately every 60 minutes.

- **COMMBASE_HARDWARE_NOTIFICATIONS_ON**:
- Description: Indicates whether Commbase hardware notifications are enabled or disabled. If set to "True", hardware notifications are enabled; otherwise, they are disabled.
- Possible values: "True" or "False". Set to "True" only if you are making Commbase hardware, such as: hardware interfaces, a speech to text engine component, or any other hardware device based on Commbase (droids, smart appliances, vehicles, etc.) Check out the existent Commbase hardware variables.
- Example value:
- `False` (Default): Hardware notifications are disabled.

- **ASSISTANT_RESPONSE_SENTIMENT_ANALYSIS_ON**:
- Description: A flag that determines whether the sentiment analysis feature for assistant responses is enabled or not. When set to `True`, the sentiment analysis is active, allowing the system to evaluate and act upon the emotional tone of the assistant's responses. Using Motors: If sentiment is positive, activate motors to simulate a hugging action. For example, robotic arms could move to embrace the user. Using Screens: Display a smiling face on a screen. For example, showing an animated smiley face on a digital display.
- Description: A flag that determines whether the sentiment analysis feature for assistant responses is enabled or not. When set to `True`, the sentiment analysis is active, allowing the system to evaluate and act upon the emotional tone of the assistant's responses. Using Motors: If sentiment is positive, activate motors to simulate a hugging action. For example, robotic arms could move to embrace the user. Using Screens: Display a smiling face on a screen. For example, showing an animated smiley face on a digital display. Relies on the value of the variable `COMMBASE_HARDWARE_NOTIFICATIONS_ON`.
- Possible values:
- `True`: Enables sentiment analysis for assistant responses.
- `False`: Disables sentiment analysis for assistant responses.
- Example value:
- `True` (Default): Set to `True`, indicating that the system will perform sentiment analysis on the assistant's responses, facilitating actions based on the detected sentiment.

- **COMMBASE_HARDWARE_NOTIFICATIONS_ON**:
- Description: Indicates whether Commbase hardware notifications are enabled or disabled. If set to "True", hardware notifications are enabled; otherwise, they are disabled.
- Possible values: "True" or "False". Set to "True" only if you are making Commbase hardware, such as: hardware interfaces, a speech to text engine component, or any other hardware device based on Commbase (droids, smart appliances, vehicles, etc.) Check out the existent Commbase hardware variables.
- Example value:
- `False` (Default): Hardware notifications are disabled.

- **COMMBASE_HARDWARE_DEVICE_0**:
- Description: The path of the hardware device used for communication, for example, an Arduino or any other microcontroller. Check out the other existent Commbase hardware variables.
- Possible values: A valid path to a hardware device.
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"messages": [{"language": "en_us"}, {"control": ""}, {"current_request": "--select-stt-engine"}, {"previous_request": "--select-stt-engine"}, {"current_response": ""}, {"runtime": ""}, {"source_code_display": ""}, {"source_code": ""}]}
{"messages": [{"language": "en_us"}, {"control": ""}, {"current_request": "rec"}, {"previous_request": "rec"}, {"current_response": ""}, {"runtime": ""}, {"source_code_display": ""}, {"source_code": ""}]}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[![Python Package using Conda](https://github.com/mydroidandi/commbase/actions/workflows/python-package-conda.yml/badge.svg)](https://github.com/mydroidandi/commbase/actions/workflows/python-package-conda.yml)
[![Python Version](https://img.shields.io/badge/Python-3.10%20%7C%203.11%20%7C%203.12-blue)](https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12-blue)

# commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-pinecone

<img alt="commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-pinecone" src="commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-pinecone.jpg?raw=true" width="512" height="640" />

Interacts with the Commbase platform by generating AI-driven responses using the Ollama API with the Phi3 mini model from Microsoft. This is a heavyweight implementation with memory for language generation, featuring remote RAG and Pinecone for persistent memory.

## Examples

Detailed information about examples can be found in the corresponding [`examples`](./examples) directory.

## Contributors

Thanks to the following people who have contributed to this project:

* [@estebanways](https://github.com/estebanways)

## Contact

If you want to contact us you can reach us at <stv.herrera@gmail.com>.

## License

This project uses the following license: [`License`](./COPYING).
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/usr/bin/env python
################################################################################
# commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-picone #
# commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-pinecone #
# #
# A sophisticated AI assistant's Small Language Model (Phi3), enhanced by #
# Retrieval-Augmented Generation (RAG) for improved response accuracy, and #
# supported by a Picone semantic vector database. #
# supported by a Pinecone semantic vector database. #
# #
# Change History #
# 06/25/2024 Esteban Herrera Original code. #
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/usr/bin/env python
################################################################################
# commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-picone #
# commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-pinecone #
# #
# A sophisticated AI assistant's Small Language Model (Phi3), enhanced by #
# Retrieval-Augmented Generation (RAG) for improved response accuracy, and #
# supported by a Picone semantic vector database. #
# supported by a Pinecone semantic vector database. #
# #
# Change History #
# 06/25/2024 Esteban Herrera Original code. #
Expand Down Expand Up @@ -32,7 +32,7 @@
# along with this program; if not, write to the Free Software #
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #

# create_and_configure_a_new_Pinecone_index.py
# create_and_configure_a_new_pinecone_index.py
# Creates and configures a new Pinecone index named 'new-pinecone-index'

# Imports
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/usr/bin/env python
################################################################################
# commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-picone #
# commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-pinecone #
# #
# A sophisticated AI assistant's Small Language Model (Phi3), enhanced by #
# Retrieval-Augmented Generation (RAG) for improved response accuracy, and #
# supported by a Picone semantic vector database. #
# supported by a Pinecone semantic vector database. #
# #
# Change History #
# 06/25/2024 Esteban Herrera Original code. #
Expand Down Expand Up @@ -32,7 +32,7 @@
# along with this program; if not, write to the Free Software #
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #

# 02_create_and_configure_pinecone_index.py
# create_and_configure_pinecone_index.py
# Creates and configures a new Pinecone index named 'new-pinecone-index'

# Imports
Expand Down
Loading

0 comments on commit 136d086

Please sign in to comment.