Live data from Hacker News

Show HN: Symphony – Use GPT-4 to call functions in sequence

symphony.run

1–10 of 36 posts

Show HN: Symphony – Use GPT-4 to call functions in sequence

#1
Hey HN!

I'm excited to introduce Symphony – a toolkit designed to help developers write functions and let GPT-4 call them in whatever sequence that makes most sense based on conversation.

I've been quite amazed[1] by GPT-4's recent ability to both detect when a function needs to be called and to respond with JSON that adheres to the function's signature.

Since developers currently append descriptions of functions to API calls[2], I often found myself wishing for a toolkit that would automatically create these descriptions as I added and debugged functions during development.

You can get started by cloning the repository and adding functions by following the guide at https://symphony.run/docs

As of now, the toolkit supports functions in TypeScript. I'll be adding support for more languages and features based on your feedback :)

[1] - Symphony Showcase: https://symphony.run/showcase

[2] - Function calling and other API updates from OpenAI: https://openai.com/blog/function-calling-and-other-api-updat...

Show HN: Symphony – Use GPT-4 to call functions in sequence
symphony.run

Re: Show HN: Symphony – Use GPT-4 to call functions in sequence

#2
If I'm understanding correctly, this makes all of the functions available to gpt-4 at once and then gpt-4 decides which one to use, right? What are the limits on the number and length of functions, and is there any way to choose only a subject of the functions to share for a given user query?

Re: Show HN: Symphony – Use GPT-4 to call functions in sequence

#3
post #2

If I'm understanding correctly, this makes all of the functions available to gpt-4 at once and then gpt-4 decides which one to use, right? What are the limits on the number and length of functions, and is there any way to choose only a subject of the functions to share for a given user query?

Sure, give the LLM a discovery function. If you're trying to figure out what tools to give the LLM based on user input, you're probably squandering the main power of the pattern.

Re: Show HN: Symphony – Use GPT-4 to call functions in sequence

#5
post #2

If I'm understanding correctly, this makes all of the functions available to gpt-4 at once and then gpt-4 decides which one to use, right? What are the limits on the number and length of functions, and is there any way to choose only a subject of the functions to share for a given user query?

Pretty cool that this is a recreation of expert systems, which was a dominant approach to building AIs for decades :)

Re: Show HN: Symphony – Use GPT-4 to call functions in sequence

#6
post #2

If I'm understanding correctly, this makes all of the functions available to gpt-4 at once and then gpt-4 decides which one to use, right? What are the limits on the number and length of functions, and is there any way to choose only a subject of the functions to share for a given user query?

Pretty cool that this is a recreation of expert systems, which was a dominant approach to building AIs for decades :)

Expert systems except it's like 400 times more expensive to run.

Re: Show HN: Symphony – Use GPT-4 to call functions in sequence

#7
Nice. Just to point out, calling a sequence of functions is what GPT-4 does automatically if you keep feeding it the responses and it is clear to it that is necessary given it's instructions.

So the main point of this seems to be extracting the interface from the module and converting it into the OpenAI API call's functions format.

It's a good idea. But for me I would rather just have an npm package with a function like

  extractFunctions(srcFilename)
which I could then use inside of my own project which already handles the rest of it.

Re: Show HN: Symphony – Use GPT-4 to call functions in sequence

#8
Is there still an absolutely pathetic amount of GPT4 calls per day? I pay the $20 to chatgpt but I never ever pick GPT4 because 10 minutes into an AI directed conversation I'll get the "sorry ur out of gpt4 today" message. The only time I wind up using that limit is when I don't even realize it's using it. I have no idea what the difference actually is because its limit is to low for me to even consider relying on over 3.5.

Re: Show HN: Symphony – Use GPT-4 to call functions in sequence

#9
post #7

Nice. Just to point out, calling a sequence of functions is what GPT-4 does automatically if you keep feeding it the responses and it is clear to it that is necessary given it's instructions. So the main point of this seems to be extracting the interface from the module and converting it into the OpenAI API call's functions format. It's a good idea. But for me I would rather just have an npm package with a function l…

Yep. I built this for Python recently and it uses introspection to automatically build this same info. It's maybe 100 lines in total? The OpenAI API is pretty amazing.

Re: Show HN: Symphony – Use GPT-4 to call functions in sequence

#10
post #8

Is there still an absolutely pathetic amount of GPT4 calls per day? I pay the $20 to chatgpt but I never ever pick GPT4 because 10 minutes into an AI directed conversation I'll get the "sorry ur out of gpt4 today" message. The only time I wind up using that limit is when I don't even realize it's using it. I have no idea what the difference actually is because its limit is to low for me to even consider relying on ov…

Try using the API. There are multiple open source ChatGPT clones or terminal clients. The API limits are not a problem for an individual.
Post reply on HN