Commit Graph

40 Commits

Author SHA1 Message Date
a7125662f1 Fix gpt o-series code block formatting (#4089)
* prompt addition for gpt o-series to encourage markdown formatting of code blocks

* fix to match https://simonwillison.net/tags/markdown/

* chris comment

* chris comment
2025-02-24 00:59:48 +00:00
4a4e4a6c50 thread utils respect contextvars (#4074)
* thread utils respect contextvars now

* address pablo comments

* removed tenant id from places it was already being passed

* fix rate limit check and pablo comment
2025-02-24 00:43:21 +00:00
e304ec4ab6 Agent search history displayed answer (#4052) 2025-02-19 15:52:16 -08:00
47fd4fa233 Strict Tenant ID Enforcement (#3871)
* strict tenant id enforcement

* k

* k

* nit

* merge

* nit

* k
2025-02-19 00:52:56 +00:00
2b2ba5478c new is_agentic flag for chatmessages (#4026)
* new is_agentic flag for chatmessages

* added cancelled error to db

* added cancelled error to returned message
2025-02-18 04:20:33 +00:00
5ca898bde2 Force use tool overrides (#4024)
* initial rename + timeout bump

* querry override
2025-02-17 21:01:24 +00:00
86bd121806 no reranking if local model w/o GPU for Agent Search (#4011)
* no reranking if locql model w/o GPU

* more efficient gpu status calling

* fix unit tests

---------

Co-authored-by: Evan Lohn <evan@danswer.ai>
2025-02-17 14:13:24 +00:00
217569104b added context type for when internet search tool is used (#3930) 2025-02-08 20:44:38 -08:00
29f5f4edfa fixed citations when sections selected (#3914)
* removed some dead code and fixed citations when a search request is made with sections selected

* fix black formatting issue
2025-02-05 22:16:07 +00:00
49fd76b336 Tool Call Error Display (#3897) 2025-02-04 16:12:50 -08:00
125e5eaab1 various mypy improvements 2025-02-04 12:06:10 -08:00
506a9f1b94 Yuhong 2025-02-03 20:10:51 -08:00
71304e4228 always persist in agent search 2025-02-03 20:10:51 -08:00
29440f5482 alembic heads, basic citations, search pipeline state 2025-02-03 20:10:51 -08:00
5a95a5c9fd large number of PR comments addressed 2025-02-03 20:10:51 -08:00
118e8afbef reworked config to have logical structure 2025-02-03 20:10:51 -08:00
e191e514b9 fixed find and replace issue 2025-02-03 20:10:51 -08:00
0578c31522 rename retrieval & consolidate_sub_answers (initial and refinement) 2025-02-03 20:10:51 -08:00
6c7f8eaefb first pass at dead code deletion 2025-02-03 20:10:50 -08:00
110c9f7e1b nit 2025-02-03 20:10:50 -08:00
1a22af4f27 AgentPromptConfig in Answer class 2025-02-03 20:10:50 -08:00
7d494cd65e allowed empty Search Tool for non-agentic search 2025-02-03 20:10:50 -08:00
2d8486bac4 stop infos when done streaming answers 2025-02-03 20:10:50 -08:00
5e9b2e41ae persisting refined answer improvement 2025-02-03 20:10:50 -08:00
db2004542e fixed chat tests 2025-02-03 20:10:50 -08:00
982040c792 WIP, but working basic search using initial tool choice node 2025-02-03 20:10:50 -08:00
71eafe04a8 various fixes from Yuhong's list 2025-02-03 20:10:50 -08:00
2032fb10da removed print statements, fixed pass through handling 2025-02-03 20:10:50 -08:00
dd260140b2 basic search restructure: WIP on fixing tests 2025-02-03 20:07:57 -08:00
4fd6e36c2f second clean commit 2025-02-03 20:07:57 -08:00
4fe99d05fd add timings for syncing (#3798)
* add timings for syncing

* add more logging

* more debugging

* refactor multipass/db check out of VespaIndex

* circular imports?

* more debugging

* add logs

* various improvements

* additional logs to narrow down issue

* use global httpx pool for the main vespa flows in celery. Use in more places eventually.

* cleanup debug logging, etc

* remove debug logging

* this should use the secondary index

* mypy

* missed some logging

* review fixes

* refactor get_default_document_index to use search settings

* more missed logging

* fix circular refs

---------

Co-authored-by: Richard Kuo (Danswer) <rkuo@onyx.app>
Co-authored-by: pablodanswer <pablo@danswer.ai>
2025-01-29 23:24:44 +00:00
a0470a96eb removed logic to search first message, fixed query override (#3812) 2025-01-29 19:02:29 +00:00
3c37764974 Allow all LLMs for image generation assistants (#3730)
* Allow all LLMs for image generation assistants

* ensure pushed

* update color + assistant -> model

* update prompt

* fix silly conditional
2025-01-24 18:23:55 +00:00
3e58cf2667 Added ability to use a tag to insert the current datetime in prompts (#3697)
* Added ability to use a tag to insert the current datetime in prompts

* made tagging logic more robust

* rename

* k

---------

Co-authored-by: Yuhong Sun <yuhongsun96@gmail.com>
2025-01-22 16:17:20 +00:00
1ad2128b2a Combined Persona and Prompt API (#3690)
* Combined Persona and Prompt API

* quality

* added tests

* consolidated models and got rid of redundant fields

* tenant appreciation day

* reverted default
2025-01-17 20:21:20 +00:00
8a4d762798 Fix follow ups in thread + fix user name (#3686)
* Fix follow ups in thread + fix user name

* Add back single history str

* Remove newline
2025-01-16 02:40:25 +00:00
8750f14647 alignment & renaming of objects for initial (displayed) ranking and re-ranking/validation citations
- renamed post-reranking/validation citation information consistently to final_... (example: doc_id_to_rank_map -> final_doc_id_to_rank_map)
 - changed and renamed objects containing initial ranking information (now: display_...) consistent with final rankings (final_...). Specifically, {} to [] for displayed_search_results
 - for CitationInfo, changed citation_num from 'x-th citation in response stream' to the initial position of the doc [NOTE: test implications]
-  changed tests:
    onyx/backend/tests/unit/onyx/chat/stream_processing/test_citation_processing.py
    onyx/backend/tests/unit/onyx/chat/stream_processing/test_citation_substitution.py
2025-01-05 15:44:34 -08:00
788b3015bc fix single quote block in llm answer (#3139) 2024-12-16 20:37:47 +00:00
814f97c2c7 MT Cloud Monitoring (#3465) 2024-12-15 16:05:03 -08:00
21ec5ed795 welcome to onyx 2024-12-13 09:56:10 -08:00