quan

Joined 18 years ago

Karma
1,049
Submissions
127
Member since
Apr 14
ndmquan at g-m-a-i-1 github.com/mquan
View on Hacker News

Recent submissions

Comment · 9 months ago
Comment · 2 years ago
Comment · 2 years ago
Comment · 3 years ago
afaik, the langchain solution loads entire openAPI spec which consumes a lot of token and won't work for many large API. For efficient token usage, api2ai divides the task into two steps: api planning and params parsing. First step takes a summarization of all the endpoints. Once the endpoint is known, we parse params using the schema of the selected endpoint.
Comment · 3 years ago
Comment · 3 years ago
I created api2ai (https://github.com/mquan/api2ai) to solve this. You provide an OpenAPI spec and auth data to spin up an agent for your API. It’s still low level and requires dev work. But I’m working on building tools to bring it to end users
Comment · 3 years ago
I created api2ai, I agree that we want to get consistent result, but that can be solved by looking up cached AI results. If the input is user driven then you’ll need AI to decipher the natural language.
Comment · 3 years ago
It’s done in two steps: 1. Create an array of every endpoint’s summary text and ask AI to select one based on the user prompt 2. Use function calling with parameters of the selected operation in step 1
Comment · 8 years ago
Same as your dad, five of my uncles fought in the war on the U.S. side, my grandfather and granduncle served in the South Vietnamese government in high positions. My family was persecuted after the war, many fled, the ones that stayed spent time in prison and fled after.

In college, I read a lot on the Vietnam war and learned about the Tet Offensive with the Hue massacre by the Vietcong, the Land Reform prior to that. But I don't see how the photos at My Lai is "pure propaganda." If you spend some time to learn about the tragic event you will find that there were a big cover up and for over 500 human lives lost, only one man was charged and subsequently pardoned.

The U.S. committed to a war when it didn't understand the people or history of Vietnam. Vietnam has a long history of fighting foreign invaders, and most people perceive the U.S. as such as they are just replacing the French when they withdrew after Dien Bien Phu in 1954. Till this day, most Vietnamese people consider China to be their biggest enemy even though the two countries share the same political ideology.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton