Skip to content
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

Parallel Web Search #1217

Merged
merged 52 commits into from
Jun 21, 2024
Merged
Changes from 1 commit
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
ef255ce
Parallel websearch
Josh-XT Jun 21, 2024
9464fcf
use vision inference
Josh-XT Jun 21, 2024
eca88be
extract keywords if unable to decode
Josh-XT Jun 21, 2024
8a41cdc
fix tab
Josh-XT Jun 21, 2024
7926d1f
async browse links in input
Josh-XT Jun 21, 2024
003e5c2
remove duplicate word in prompt
Josh-XT Jun 21, 2024
c66b38e
add search guidelines
Josh-XT Jun 21, 2024
724c6cc
add searching bool to avoid visual recall during websearch
Josh-XT Jun 21, 2024
6c2b129
improve prompt
Josh-XT Jun 21, 2024
d46a90e
improve history injection
Josh-XT Jun 21, 2024
c91fd96
add browsing activity
Josh-XT Jun 21, 2024
b20823c
add subactivities
Josh-XT Jun 21, 2024
97f178d
add extra if
Josh-XT Jun 21, 2024
904aed2
fix default
Josh-XT Jun 21, 2024
794024c
break down line items
Josh-XT Jun 21, 2024
0852608
change default conversation name to -
Josh-XT Jun 21, 2024
e1bddf3
fix error
Josh-XT Jun 21, 2024
8d96383
dont browse on rename
Josh-XT Jun 21, 2024
0420345
add activity for renaming conversation
Josh-XT Jun 21, 2024
f682cfc
add existing conversations
Josh-XT Jun 21, 2024
2a81bf8
fix log
Josh-XT Jun 21, 2024
187b4e9
improve renaming
Josh-XT Jun 21, 2024
51f34dc
dont include subactivity
Josh-XT Jun 21, 2024
1b894cf
add conversation results to websearch prompt
Josh-XT Jun 21, 2024
0019fa7
optional agent on conversations
Josh-XT Jun 21, 2024
9c69626
fix tags
Josh-XT Jun 21, 2024
2671e70
fix duplicate
Josh-XT Jun 21, 2024
f1dc4f2
add websearch override to chatcompletions
Josh-XT Jun 21, 2024
98ee15f
close sessions
Josh-XT Jun 21, 2024
7f7eb5a
fix bug
Josh-XT Jun 21, 2024
bfa009b
cite sources
Josh-XT Jun 21, 2024
73d6556
markdown links
Josh-XT Jun 21, 2024
2b4ba57
fix websearch ref
Josh-XT Jun 21, 2024
c123f33
fix citing sources
Josh-XT Jun 21, 2024
34afbe4
cite sources properly
Josh-XT Jun 21, 2024
48e0278
fix sources
Josh-XT Jun 21, 2024
df5a7a8
add agent browsing flag
Josh-XT Jun 21, 2024
d12ca24
use activity id
Josh-XT Jun 21, 2024
4da9af0
dont log link selection
Josh-XT Jun 21, 2024
99a7b35
fix prompt
Josh-XT Jun 21, 2024
ce3a29c
enfroce depth
Josh-XT Jun 21, 2024
accd1b9
nvm
Josh-XT Jun 21, 2024
484277a
gt
Josh-XT Jun 21, 2024
dbd614a
fix log output
Josh-XT Jun 21, 2024
aba0dc3
improve selection logic for speed
Josh-XT Jun 21, 2024
ad6dfb1
use self.tasks
Josh-XT Jun 21, 2024
c4a6ce1
be real
Josh-XT Jun 21, 2024
20c1248
maybe more real
Josh-XT Jun 21, 2024
4326de2
limit to 25 links
Josh-XT Jun 21, 2024
c479d9a
dont put subactivities in history
Josh-XT Jun 21, 2024
202cf72
add conv results
Josh-XT Jun 21, 2024
9d1b5a1
fix context overfitting
Josh-XT Jun 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
be real
  • Loading branch information
Josh-XT committed Jun 21, 2024
commit c4a6ce16cbca1f6e0a517d07464c12ce6fd2f1c6
2 changes: 2 additions & 0 deletions agixt/Websearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,8 @@ async def websearch_agent(
content, links = await self.web_search(
query=search_string, conversation_id=conversation_id
)
if len(links) > 5:
links = links[:5]
logging.info(
f"Found {len(links)} results for {search_string} using DDG."
)
Expand Down
Loading