-
Notifications
You must be signed in to change notification settings - Fork 1
/
configs.py
29 lines (23 loc) · 1.84 KB
/
configs.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
ENDPOINT_T_BOX_URL = "http://localhost:8995/sparql" #"http://81.193.45.33:8890/sparql"
ENDPOINT_A_BOX_URL = None #Comment this line and use the one below if T-Box and A-Box are on different endpoints
# ENDPOINT_A_BOX_URL = "http://localhost:7200/repositories/artigo"
DATASET_FILE = "questions_dataset.csv" #File name for query persistence and feedback
NUMBER_HOPS = 2 # Number of hops in neighborhood in the prefetch step to retrieve the the relevant triples for the selected resource
LIMIT_BY_PROPERTY = -1 # Maximum number of triple for each property in the prefetch step to retrieve the the relevant triples for the selected resource. Set -1 for retrieve all values for each property
MAX_SCORE_PARSER_TRIPLES_FAISS = 0.85
MIN_SCORE_PARSER_TRIPLES_WOOSH = 0.95
INDEX_T_BOX = "FAISS" # Value "FAISS": Index based in vector distance using langchain.faiss; "WHOOSH": Index based in text similarity using whoosh; "SPOTLIGHT"
USE_A_BOX_INDEX = False
INDEX_A_BOX = "WHOOSH" # Value "FAISS": Index based in vector distance using langchain.faiss; "WHOOSH": Index based in text similarity using whoosh; "SPOTLIGHT"
LLM_MODEL = "gpt-3.5-turbo" # Exemples: "gpt-3.5-turbo","gpt-3.5-turbo-16k","gpt-4","gpt-4o"
TEMPERATURE_TRANSLATE = 0#1
SIZE_CONTEXT_WINDOW_TRANSLATE = 7
TEMPERATURE_SELECT = 0#0.3
SIZE_CONTEXT_WINDOW_SELECT = 7
TEMPERATURE_FINAL_ANSWER = 0#1.2
SIZE_CONTEXT_WINDOW_FINAL_ANSWER = 7
FILTER_GRAPH = True # Filter triples after initial neighborhood retrieaval for referenced terms
RELEVANCE_THRESHOLD = 0.45 # Threshhold for filter triples based on question embedding distance vector
MAX_HITS_RATE = 0.1 # percentage of the total triples allowed to be passed in the subgraph triples filter
PRINT_HITS = False # Show list of triples marked as relevant to the query according to vector distance
VISUALIZATION_TOOL_URL="http://localhost:8994/graphs-visualizations?uri="