Skip to content

Conversation

@Yuv-sue1005
Copy link

@Yuv-sue1005 Yuv-sue1005 commented Jan 1, 2025

Pull Request Checklist

Reference Issue

Please provide the reference to issue this PR is addressing (# followed by the issue number). If there is no associated issue, write "N/A".

ref: N/A

Checklist Items

Before submitting your pull request, please review these items:

  • [F] Have you followed the contributing guidelines?
  • [T] Have you verified that there are no existing Pull Requests for the same update/change?
  • [F] Have you updated any relevant documentation or added new tests where needed?

PR Type

  • Feature Update
    • Description: Implemented Gemini 1.5, 1.5-flash, and 2.0-flash-experimental models into the generation component of ragnarok.
    • To use this feature, you must first install the following dependancy, on top of ragnarok's normal requirements: pip install google-generativeai
    • A quick command to test it's functionality, given a retrieval results file, can be done with the following:
export GEMINI_API_KEY="insert api key"

# 1.5 flash model
python src/ragnarok/scripts/run_ragnarok.py --model_path=gemini-1.5-flash \
--topk=100 --dataset=dataset_name --retrieval_method=bm25 \
--prompt_mode=gemini --context_size=8192 --max_output_tokens=1024

# 2.0 flash experimental
python src/ragnarok/scripts/run_ragnarok.py --model_path=gemini-2.0-flash-exp \
--topk=100 --dataset=dataset_name --retrieval_method=bm25 \
--prompt_mode=gemini --context_size=8192 --max_output_tokens=1024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant