Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Phoenix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Automate
Agent sessions
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
zbhAI
Phoenix
Commits
83c7c9a8
Commit
83c7c9a8
authored
Apr 25, 2024
by
Embruch, Gerd
Browse files
Options
Downloads
Patches
Plain Diff
changed readme to be more descriptive
parent
46531b29
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+17
-0
17 additions, 0 deletions
README.md
evaluateRAG.py
+0
-2
0 additions, 2 deletions
evaluateRAG.py
with
17 additions
and
2 deletions
README.md
+
17
−
0
View file @
83c7c9a8
# Purposes
This repository should enable you to compare LLM performances on RAG systems.
Imagine a Professor - Studend situation:
1.
The script fetches RAG files and chunks them.
1.
The prof (LLM1) creates a bunch of questions per chunk.
1.
The studend (LLM2) answers these questions.
1.
The professor then evaluates the questions in continuous and comparable metrics such as hallucination and correctness.
The result is detailed information on the quality of each answer and an overview of the metrics of the LLM as a whole (i.e. ndcg@2 & precision@2).
# Prerequisits
# Prerequisits
-
python3 installed
-
python3 installed
-
[
openAI API Key
](
https://auth.openai.com/
)
-
[
openAI API Key
](
https://auth.openai.com/
)
...
@@ -23,3 +35,8 @@ acccess webservice via browser, i.e.
...
@@ -23,3 +35,8 @@ acccess webservice via browser, i.e.
# Sources
# Sources
-
[
YT: RAG Time! Evaluate RAG with LLM Evals and Benchmarking
](
https://www.youtube.com/watch?v=LrMguHcbpO8
)
-
[
YT: RAG Time! Evaluate RAG with LLM Evals and Benchmarking
](
https://www.youtube.com/watch?v=LrMguHcbpO8
)
-
[
Phoenix Docs
](
https://docs.arize.com/phoenix
)
-
[
Phoenix Docs
](
https://docs.arize.com/phoenix
)
# Planned
-
[ ] ability to choose student LLM
-
[ ] option to use local LLM via ollama
\ No newline at end of file
This diff is collapsed.
Click to expand it.
evaluateRAG.py
+
0
−
2
View file @
83c7c9a8
...
@@ -9,8 +9,6 @@ from operator import length_hint
...
@@ -9,8 +9,6 @@ from operator import length_hint
from
dotenv
import
load_dotenv
from
dotenv
import
load_dotenv
# getpass enables secure password input
# getpass enables secure password input
from
getpass
import
getpass
from
getpass
import
getpass
# creating temporary files
import
tempfile
# download files containing the domain specific information
# download files containing the domain specific information
from
urllib.request
import
urlparse
,
urlretrieve
from
urllib.request
import
urlparse
,
urlretrieve
# pandas handles table data
# pandas handles table data
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment