You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the existing issues and none cover this bug.
Description
I have uploaded a document into PGPT but RAH is having issues with things like JSON in the history. The first time I query the document it works. The second time I query the document, it does not work and I get the following error: Invalid format specifier ' "Who was George Washington?", "answer": "The first President of the United States of America." ' for object of type 'str'
Source document is formatted Markdown and ingested without error.
This seems to only happen in RAG. If I switch to other tabs and ask it to generate things like JSON and Scripts it works fine. After encountering the error, if I switch from RAG to the other modes it will also still work.
It does break the other way around. If I ask chat to give me an example of JSON format and then go into RAG and query anything it will break and throw the error.
Steps to Reproduce
Import a document
Select RAG
Send prompt: Create question and answer pairs from the document in JSON format using only two keys Question and Answer.
Observe results.
Send prompt: Create question and answer pairs from the document in JSON format using only two keys Question and Answer.
Error is produced.
Another you can try is to upload any decent sized python script.
Import a document
Select RAG
Send prompt: Print the script document into a code block
Observe results.
Send prompt: What does the script do?
Error is produced.
Expected Behavior
parse the history to stop escaping
Actual Behavior
invalid format specifier error thrown
Environment
Win11, 4080 Super
Additional Information
No response
Version
0.6.2
Setup Checklist
Confirm that you have followed the installation instructions in the project’s documentation.
Check that you are using the latest version of the project.
Verify disk space availability for model storage and data processing.
Ensure that you have the necessary permissions to run the project.
NVIDIA GPU Setup Checklist
Check that the all CUDA dependencies are installed and are compatible with your GPU (refer to CUDA's documentation)
Ensure an NVIDIA GPU is installed and recognized by the system (run nvidia-smi to verify).
Ensure proper permissions are set for accessing GPU resources.
Docker users - Verify that the NVIDIA Container Toolkit is configured correctly (e.g. run sudo docker run --rm --gpus all nvidia/cuda:11.0.3-base-ubuntu20.04 nvidia-smi)
The text was updated successfully, but these errors were encountered:
Pre-check
Description
I have uploaded a document into PGPT but RAH is having issues with things like JSON in the history. The first time I query the document it works. The second time I query the document, it does not work and I get the following error:
Invalid format specifier ' "Who was George Washington?", "answer": "The first President of the United States of America." ' for object of type 'str'
Source document is formatted Markdown and ingested without error.
This seems to only happen in RAG. If I switch to other tabs and ask it to generate things like JSON and Scripts it works fine. After encountering the error, if I switch from RAG to the other modes it will also still work.
It does break the other way around. If I ask chat to give me an example of JSON format and then go into RAG and query anything it will break and throw the error.
Steps to Reproduce
Another you can try is to upload any decent sized python script.
Expected Behavior
parse the history to stop escaping
Actual Behavior
invalid format specifier error thrown
Environment
Win11, 4080 Super
Additional Information
No response
Version
0.6.2
Setup Checklist
NVIDIA GPU Setup Checklist
nvidia-smi
to verify).sudo docker run --rm --gpus all nvidia/cuda:11.0.3-base-ubuntu20.04 nvidia-smi
)The text was updated successfully, but these errors were encountered: