SciPhi-AI / R2R

The most advanced Retrieval-Augmented Generation (RAG) system, containerized and RESTful
https://r2r-docs.sciphi.ai/
MIT License
3.65k stars 270 forks source link

Fix JSON serialization and Prompt ID Bugs for Prompts #1491

Closed NolanTrem closed 3 weeks ago

NolanTrem commented 3 weeks ago

Also offers a 25x speedup for retrieval.


[!IMPORTANT] Fixes JSON serialization and prompt ID issues, adds debug prints, and improves retrieval speed by 25x in prompt management.

  • Behavior:
    • Fixes JSON serialization in prompt.py by ensuring input_types is a dictionary.
    • Adds prompt_id to database operations in prompt.py for better prompt management.
    • Adds debug prints in app_settings in management_service.py.
  • Database:
    • Changes primary key from name to prompt_id in prompt.py.
    • Updates SQL queries to include prompt_id in prompt.py.
  • Performance:
    • Improves retrieval speed by 25x in prompt.py.
  • Testing:
    • Adds tests test_get_all_prompts and test_get_prompt in runner_sdk.py.

This description was created by Ellipsis for 5deda2750acddb7b8952db7ec2e22cfb7d3a54f1. It will automatically update as commits are pushed.

vercel[bot] commented 3 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
yc_demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 25, 2024 7:18pm
yc-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 25, 2024 7:18pm
1 Skipped Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **recommendation_platform** | ⬜️ Ignored ([Inspect](https://vercel.com/my-team-88dd52c0/recommendation_platform/8RvYwc6uG61rhYpsVm4zDr3EQYxM)) | | | Oct 25, 2024 7:18pm |