Merge commit 'e16606672afab6c257010ce4a0ff1614740aa096' as 'packages/tools'

This commit is contained in:
Greyson Lalonde
2025-09-12 21:58:02 -04:00
303 changed files with 49010 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
from typing import Callable
import pytest
class Helpers:
@staticmethod
def get_embedding_function() -> Callable:
def _func(input):
assert input == ["What are the requirements for the task?"]
with open("tests/data/embedding.txt", "r") as file:
content = file.read()
numbers = content.split(",")
return [[float(number) for number in numbers]]
return _func
@pytest.fixture
def helpers():
return Helpers