Skip to content

Commit 2ce52e4

Browse files
committed
ran nbdev prepare
1 parent d60092e commit 2ce52e4

File tree

6 files changed

+413
-1359
lines changed

6 files changed

+413
-1359
lines changed

nbs/metric/base.ipynb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,11 @@
4141
"from ragas_annotator.embedding.base import BaseEmbedding\n",
4242
"from ragas_annotator.metric import MetricResult\n",
4343
"from ragas_annotator.llm import RagasLLM\n",
44-
"from ragas_annotator.project.core import Project\n",
4544
"from ragas_annotator.model.notion_model import NotionModel\n",
4645
"from ragas_annotator.prompt.dynamic_few_shot import DynamicFewShotPrompt\n",
47-
"\n"
46+
"\n",
47+
"if t.TYPE_CHECKING:\n",
48+
" from ragas_annotator.project.core import Project"
4849
]
4950
},
5051
{
@@ -126,7 +127,7 @@
126127
" # Run all tasks concurrently and return results\n",
127128
" return await asyncio.gather(*async_tasks)\n",
128129
" \n",
129-
" def train(self,project:Project, experiment_names: t.List[str], model:NotionModel, embedding_model: BaseEmbedding,method: t.Dict[str, t.Any]):\n",
130+
" def train(self,project: \"Project\", experiment_names: t.List[str], model:NotionModel, embedding_model: BaseEmbedding,method: t.Dict[str, t.Any]):\n",
130131
" \n",
131132
" assert isinstance(self.prompt, Prompt)\n",
132133
" self.prompt = DynamicFewShotPrompt.from_prompt(self.prompt,embedding_model)\n",

nbs/model/notion_model.ipynb

Lines changed: 0 additions & 286 deletions
This file was deleted.

0 commit comments

Comments
 (0)