Scrapegraph-ai/examples
2024-08-13 20:54:57 +02:00
..
anthropic fixing import bug 2024-08-11 19:23:30 +02:00
azure chore(examples): update provider names to match tokens dictionary 2024-08-13 19:33:29 +02:00
bedrock fix: abstract_graph and removed unused embeddings 2024-08-01 14:38:50 +02:00
benchmarks Update Readme.md 2024-06-21 15:00:31 +02:00
deepseek fix: abstract_graph and removed unused embeddings 2024-08-01 14:38:50 +02:00
ernie fixing import bug 2024-08-11 19:23:30 +02:00
extras feat: add integration in the abstract grapgh 2024-08-01 12:51:18 +02:00
fireworks fix: abstract_graph and removed unused embeddings 2024-08-01 14:38:50 +02:00
google_genai chore(examples): add vertex examples, rename genai examples 2024-08-13 19:38:23 +02:00
google_vertexai chore(examples): add vertex examples, rename genai examples 2024-08-13 19:38:23 +02:00
groq fix: abstract_graph and removed unused embeddings 2024-08-01 14:38:50 +02:00
huggingfacehub fixing import bug 2024-08-11 19:23:30 +02:00
integrations feat(indexify-node): add example 2024-06-05 18:45:37 +02:00
local_models refactoring pyproject.toml 2024-08-11 18:04:31 +02:00
mistral chore(examples): fix Mistral examples 2024-08-07 15:20:49 +02:00
mixed_models fixing import bug 2024-08-11 19:23:30 +02:00
nemotron fixing import bug 2024-08-11 19:23:30 +02:00
oneapi fixing import bug 2024-08-11 19:23:30 +02:00
openai fixing import bug 2024-08-11 19:23:30 +02:00
single_node chore(examples): fix import bug in image2text demo 2024-08-12 10:30:50 +02:00
readme.md add new test for script generator 2024-04-18 10:39:53 +02:00

Benchmark analysis

Local models

The two websites benchmark are:

Both are strored locally as txt file in .txt format because in this way we do not have to think about the internet connection

The time is measured in seconds

The model runned for this benchmark is Mistral on Ollama with nomic-embed-text

Hardware Example 1 Example 2
Macbook pro 14' m1 11.60s 26.61s
Macbook pro 16' m2 max 8.05s 12.17s

Note: the examples on Docker are not runned on other devices than the Macbook because the performance are to slow (10 times slower than Ollama). Indeed the results are the following:

Hardware Example 1 Example 2
Macbook 14' m1 pro 139.89 Too long

Performance on APIs services

Example 1: personal portfolio

URL: https://perinim.github.io/projects Task: List me all the projects with their description.

Name Execution time (seconds) total_tokens prompt_tokens completion_tokens successful_requests total_cost_USD
gpt-3.5-turbo 25.22 445 272 173 1 0.000754
gpt-4-turbo-preview 9.53 449 272 177 1 0.00803

Example 2: Wired

URL: https://www.wired.com Task: List me all the articles with their description.

Name Execution time (seconds) total_tokens prompt_tokens completion_tokens successful_requests total_cost_USD
gpt-3.5-turbo 25.89 445 272 173 1 0.000754
gpt-4-turbo-preview 64.70 3573 2199 1374 1 0.06321