Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Meta Comphrehensive RAG Benchmark starter kit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AIcrowd
Challenges
Meta Comprehensive RAG Benchmark - KDD Cup 2024
Meta Comphrehensive RAG Benchmark starter kit
Commits
ea84b35c
Commit
ea84b35c
authored
11 months ago
by
spmohanty
Browse files
Options
Downloads
Patches
Plain Diff
remove dynamic character limit
parent
3ef4acb0
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
models/dummy_model.py
+2
-2
2 additions, 2 deletions
models/dummy_model.py
with
2 additions
and
2 deletions
models/dummy_model.py
+
2
−
2
View file @
ea84b35c
from
typing
import
List
from
typing
import
List
class
DummyModel
:
class
DummyModel
:
def
__init__
(
self
):
def
__init__
(
self
):
"""
Initialize your models here
"""
"""
Initialize your models here
"""
pass
pass
def
generate_answer
(
self
,
query
:
str
,
search_results
:
List
[
str
]
,
character_limit
:
int
)
->
str
:
def
generate_answer
(
self
,
query
:
str
,
search_results
:
List
[
str
])
->
str
:
"""
"""
You will be provided with a query and the corresponding pre-cached search results for the query
You will be provided with a query and the corresponding pre-cached search results for the query
Inputs -
Inputs -
query - String representing the input query
query - String representing the input query
search_results - List of strings, each comes from scraped HTML text of the search query
search_results - List of strings, each comes from scraped HTML text of the search query
character_limit - A maximum character limit for the answer (can vary per query)
Returns -
Returns -
string response - Your answer in plain text, should be limited to the character limit,
string response - Your answer in plain text, should be limited to the character limit,
Any longer responses will be trimmed to meet the character limit
Any longer responses will be trimmed to meet the character limit
...
...
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