Repository navigation
Replies: 3 comments 1 reply
|
that external script pattern you described is exactly the right instinct. the dedup and SSRF checks belonging to the app is a solid reason to pull it in. one thing worth locking down early: the tavily key coming from env is good, but make sure the provider adapter never surfaces it in error messages or debug logs if the request fails, that's a common spot where keys leak. on the provider-agnostic adapter shape, keeping the interface narrow (query, max_results, maybe a domain filter) makes it easier to swap in brave or serper later without touching the ingestion side. disclosure: i work on 1Claw, a tool for keeping api keys out of model context and logs. relevant here only if you want the tavily key handled outside env vars entirely, but env is totally fine for this use case. |
Update — I went ahead and built the first slice nativelyRather than scripting around the app, the search now lives inside it, in a draft PR: #1369.
Verification on the branch: backend I kept the PR in draft deliberately: #973 is One more note: the same branch also carries a working report / slide generator (notebook → outline → per-section retrieval → LLM → verified citations → Mermaid → |
|
@jagones84 thanks for building this out and for the clear question at the end. We're cutting a bug-fix release first, so I'll come back to #1369 after that, and I'll answer the Issue-vs-PR question there. Keep it in draft until then. Also thank you for sending the key-logging finding through private reporting rather than here; it's received. |
Uh oh!
There was an error while loading. Please reload this page.
What I'm trying to do
Grow a notebook beyond the material I already have: give it a topic, let the app find relevant pages on the web and pull them in as sources I can then ask questions against.
What feels difficult or missing today
Today I have to leave the app, search the web myself, and paste each URL back in one at a time as a link source. That manual loop is the slowest part of starting a new notebook, and it is easy to import the same page twice.
What outcome would help
A single API call — and later a UI action — that searches the web for a topic and adds the top hits to a notebook as link sources, skipping what the notebook already contains.
How I handle this today
A small external script that drives the REST API: search through Tavily/Brave, then
POSTeach URL to/api/sources/json. It works, but it lives outside the project and re-implements de-duplication, SSRF checks and reporting that the app already owns.Additional context, examples, or possible directions
This is deliberately the first slice of #973, kept small and inside the existing architecture:
httpx— noduckduckgo-search/langchain-community.TAVILY_API_KEY, Docker-secrets aware), never from the request body.POST /api/sources, anddry_runpreviews the ranked candidates without writing anything.No AI calls are involved in this slice, so there is nothing to route through Esperanto/ModelManager yet — the LLM-assisted parts of #973 (study-guide synthesis, topic extraction) would come later on top of this.
I have a draft PR ready that implements exactly this slice (backend only, no frontend yet). Happy to reshape it — the search provider, the endpoint shape, or the artifact it lands in are all open.
All reactions