Ask a Question
Back to All

Different results in API and Web UI.

Thanks develepors for this beautiful AI tool.

This AI works wonders in the web interface. I researched many AI tools, but Perplexity is clearly ahead. Afterwards, I decided to use it with the API. But there is a big difference between API and web UI results. Web UI shows much better results. Is there any way to solve this?

I'm adding an example for this below.

Question: Who are the top 5 glass producers in Europe and what is their production capacity?

Result from Web UI with "SONAR LARGE 32K"

It gives very good results.

The top 5 glass producers in Europe are: AGC Inc.: With a production capacity of over 10 million square meters of coated glass per year, AGC Inc. is one of the leading glass producers in Europe. Saint-Gobain: Saint-Gobain has a production capacity of up to 250,000 tonnes of glass annually, equating to up to 10 miles of glass produced each day. Vitro: Vitro has a production capacity of over 6 million square meters of coated glass per year and is one of the leading glass manufacturers in North America. Şişecam: Şişecam has a production capacity that places it 5th in the world and 1st in Europe in terms of flat glass production, with an annual production capacity of over 2.5 million tons. Guardian Glass: Guardian Glass is a leading glass manufacturer in Europe, with a significant production capacity, although the exact figure is not publicly disclosed. These companies are leaders in the European glass market, with significant production capacities and a strong presence in the industry.

Result from API "llama-3-sonar-large-32k-online"

It does not provide capacity information for manufacturers other than Şişecam.

{ "id": "efb09074-b1fc-4f43-9e17-a6ab8144d68d", "model": "llama-3-sonar-small-32k-online", "created": 1719606123, "usage": { "prompt_tokens": 66, "completion_tokens": 285, "total_tokens": 351 }, "object": "chat.completion", "choices": [ { "index": 0, "finish_reason": "stop", "message": { "role": "assistant", "content": "The top 5 glass producers in Europe are:\n\n1. **Saint-Gobain Glass**: Known for its extensive operations in over 68 countries, employing around 171,000 people, and having a revenue of $49.3 billion. Saint-Gobain is a leading global glass manufacturer with significant production capacity.\n\n2. **AGC Glass Europe**: As the European branch of AGC (Japan), it operates over 100 sites across Europe, employing around 16,500 people. AGC Glass Europe is a major flat glass manufacturer for the construction, automotive, and solar industries.\n\n3. **Şişecam**: After acquiring Sangalli, Şişecam became the largest flat-glass manufacturer in Europe with an annual production capacity of 220,000 tons.\n\n4. **Vetropack Group**: This Swiss-based company is known for its innovative manufacturing processes and produces lightweight and durable glass bottles. They have clients in over 7 countries and employ around 3,000 people.\n\n5. **Verallia**: Headquartered in France, Verallia has been producing durable glass bottles for wines, beer, liquors, and juices since 1827. They cater to a wide range of industries, including food and beverages.\n\nThese companies are prominent players in the European glass manufacturing industry, contributing significantly to the continent's overall glass production capacity." }, "delta": { "role": "assistant", "content": "" } } ] }