antimoda1 commited on
Commit
daaa8b9
·
1 Parent(s): a95e8c6
Files changed (2) hide show
  1. app.py +1 -1
  2. generation.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ from _2_splitting import _parse_single_year
7
  from vocabulary.parse_vocabulary import parse_vocabulary
8
 
9
 
10
- vocabulary = parse_vocabulary('vocabulary/vocabulary.md')
11
  retrieval = Retrieval()
12
 
13
 
 
7
  from vocabulary.parse_vocabulary import parse_vocabulary
8
 
9
 
10
+ vocabulary, _ = parse_vocabulary('vocabulary/vocabulary.md')
11
  retrieval = Retrieval()
12
 
13
 
generation.py CHANGED
@@ -64,7 +64,7 @@ def lemmatize(text, vocabulary):
64
  return found_terms
65
 
66
 
67
- def wrap_prompt(retrieved_text, query_text, vocabula):
68
  tokens_from_query = lemmatize(query_text, vocabula)
69
  tokens_from_retrieved = lemmatize(retrieved_text, vocabula)
70
  info_for_llm = ''
 
64
  return found_terms
65
 
66
 
67
+ def wrap_prompt(retrieved_text, query_text, vocabula: dict[str, str]):
68
  tokens_from_query = lemmatize(query_text, vocabula)
69
  tokens_from_retrieved = lemmatize(retrieved_text, vocabula)
70
  info_for_llm = ''