Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Llama Index
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
run-llama
Llama Index
Commits
94ec6ad8
Unverified
Commit
94ec6ad8
authored
1 year ago
by
Bill Metangmo
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
fix: allow guideline evaluator with bedrock (#11719)
parent
53095d8b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
llama-index-core/llama_index/core/evaluation/base.py
+8
-2
8 additions, 2 deletions
llama-index-core/llama_index/core/evaluation/base.py
with
8 additions
and
2 deletions
llama-index-core/llama_index/core/evaluation/base.py
+
8
−
2
View file @
94ec6ad8
...
@@ -95,8 +95,14 @@ class BaseEvaluator(PromptMixin):
...
@@ -95,8 +95,14 @@ class BaseEvaluator(PromptMixin):
Subclasses can override this method to provide custom evaluation logic and
Subclasses can override this method to provide custom evaluation logic and
take in additional arguments.
take in additional arguments.
"""
"""
return
asyncio
.
run
(
response_str
:
Optional
[
str
]
=
None
self
.
aevaluate_response
(
query
=
query
,
response
=
response
,
**
kwargs
)
contexts
:
Optional
[
Sequence
[
str
]]
=
None
if
response
is
not
None
:
response_str
=
response
.
response
contexts
=
[
node
.
get_content
()
for
node
in
response
.
source_nodes
]
return
self
.
evaluate
(
query
=
query
,
response
=
response_str
,
contexts
=
contexts
,
**
kwargs
)
)
async
def
aevaluate_response
(
async
def
aevaluate_response
(
...
...
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
register
or
sign in
to comment