Hacker News new | past | comments | ask | show | jobs | submit | bediashpreet's comments login


Thanks, yes we're seeing a lot of use cases being unlocked by function calling.

To answer you first question, function calling models are trained to detect when a function should to be called (depending on the input) and to respond with JSON that adheres to the function signature.

A thoughtful prompt and a loop where they parse outputs and check if it corresponds to the arguments of the function is the ReAct model of building agents, which I've found starts to deteriorate in quality after about 5 tools.

Whereas with function calling, because the LLM is trained to detect/call functions it can work very well up-to 30-40 functions -- after which we need to start using techniques like delegation.


Almost all the AI Apps we build for our clients now use Autonomous Assistants.

They're simply better than naive RAG, especially when you need to access APIs, format content or compare different sections of the knowledge base.

Here are a few demos we have in the open:

> HackerNews AI: Interacts with the hackernews API - https://hn.aidev.run

> ArXiv AI: Reads, summarizes and compares arxiv papers - https://arxiv.aidev.run

(love that it can give you a comparison between 2 papers)

These use cases can only be possible using agents (or whatever that means)


Hi HN, chat with PDFs is the first AI App everyone builds but quickly we realize that basic prompt stuffing doesn’t work. So I put together a PDF AI that uses function calling: https://pdf.aidev.run

It intelligently figures out if:

> The question needs retrieval or web search

> If it needs retrieval, does it need to search the latest doc, a specific doc or all docs

> Produces an answer with context.

Give it a spin at: https://pdf.aidev.run and let me know what you think. Its a prototype so expect flaws, but if you share feedback i'll make sure to improve it.

If you’re interested: - Here’s the code: https://github.com/phidatahq/ai-cookbook/tree/main/pdf_ai - I used phidata to build this: https://github.com/phidatahq/phidata


I received feedback that the AI should be able to tell the user about their account/top posts, so I've added that functionality

If you ask, "tell me about the user pg" or click on the "what are my top posts" button it will fetch user details from the hackernews API


Implemented another item from feedback, ability to summarize a user profile.

Add your username to the `Ask about a user` input and the AI should summarize your hackernews profile


Also added ability to search the web as people wanted to ask questions that had basic context on the web and then use that context to search HN


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: