Scrapegraph-ai/examples
2024-05-08 15:36:26 +02:00
..
anthropic Added support for Claude 3 models from Anthropic 2024-05-06 14:34:35 +03:00
azure add new search graph examples 2024-05-06 22:31:48 +02:00
benchmarks fix: script generator and add new benchmarks 2024-04-30 11:51:04 +02:00
gemini add new search graph examples 2024-05-06 22:31:48 +02:00
groq refactor: Changed the way embedding model is created in AbstractGraph class and removed handling of embedding model creation from RAGNode. Now AbstractGraph will call a dedicated method for embedding models instead of _create_llm. This makes it easy to use any LLM with any supported embedding model. 2024-05-03 16:14:27 +03:30
huggingfacehub feat: Enable end users to pass model instances of HuggingFaceHub 2024-05-04 21:42:57 +05:30
local_models fix(examples): local, mixed models and fixed SearchGraph embeddings problem 2024-05-08 15:36:26 +02:00
mixed_models fix(examples): local, mixed models and fixed SearchGraph embeddings problem 2024-05-08 15:36:26 +02:00
openai fix(examples): openai std examples 2024-05-08 14:56:44 +02:00
single_node Resolved key error "llm" -> "llm_model" 2024-05-05 16:13:05 +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