Skip to content

Commit

Permalink
add missing parameters (#1919)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebrehault authored Jan 21, 2025
1 parent c31a4dd commit a1e1506
Show file tree
Hide file tree
Showing 10 changed files with 304 additions and 21 deletions.
1 change: 1 addition & 0 deletions apps/search-widget-demo/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// const kb = '1f4e4651-580c-40db-8d20-c8dfdfffa530'; // books
const kb = '5fad8445-ff08-4428-85a4-3c6eeb9d2ece'; // chat
// const kb = '16f09da3-6637-4e8a-963a-0a5c18f3eb3f'; // movies / knowledge graph
// const kb = '5c2bc432-a579-48cd-b408-4271e5e7a43c'; // medias
// const kb = '096d9070-f7be-40c8-a24c-19c89072e3ff'; // e2e permanent
Expand Down
184 changes: 184 additions & 0 deletions libs/common/common.babel
Original file line number Diff line number Diff line change
Expand Up @@ -25735,6 +25735,98 @@
<folder_node>
<name>graph</name>
<children>
<concept_node>
<name>agentic_graph_only</name>
<description/>
<comment/>
<translations>
<translation>
<language>ca-ES</language>
<approved>false</approved>
</translation>
<translation>
<language>en-US</language>
<approved>false</approved>
</translation>
<translation>
<language>es-ES</language>
<approved>false</approved>
</translation>
<translation>
<language>fr-FR</language>
<approved>false</approved>
</translation>
</translations>
</concept_node>
<concept_node>
<name>agentic_graph_only_help</name>
<description/>
<comment/>
<translations>
<translation>
<language>ca-ES</language>
<approved>false</approved>
</translation>
<translation>
<language>en-US</language>
<approved>false</approved>
</translation>
<translation>
<language>es-ES</language>
<approved>false</approved>
</translation>
<translation>
<language>fr-FR</language>
<approved>false</approved>
</translation>
</translations>
</concept_node>
<concept_node>
<name>generative_relation_ranking</name>
<description/>
<comment/>
<translations>
<translation>
<language>ca-ES</language>
<approved>false</approved>
</translation>
<translation>
<language>en-US</language>
<approved>false</approved>
</translation>
<translation>
<language>es-ES</language>
<approved>false</approved>
</translation>
<translation>
<language>fr-FR</language>
<approved>false</approved>
</translation>
</translations>
</concept_node>
<concept_node>
<name>generative_relation_ranking-help</name>
<description/>
<comment/>
<translations>
<translation>
<language>ca-ES</language>
<approved>false</approved>
</translation>
<translation>
<language>en-US</language>
<approved>false</approved>
</translation>
<translation>
<language>es-ES</language>
<approved>false</approved>
</translation>
<translation>
<language>fr-FR</language>
<approved>false</approved>
</translation>
</translations>
</concept_node>
<concept_node>
<name>hops</name>
<description/>
Expand Down Expand Up @@ -25781,6 +25873,98 @@
</translation>
</translations>
</concept_node>
<concept_node>
<name>relation_text_as_paragraphs</name>
<description/>
<comment/>
<translations>
<translation>
<language>ca-ES</language>
<approved>false</approved>
</translation>
<translation>
<language>en-US</language>
<approved>false</approved>
</translation>
<translation>
<language>es-ES</language>
<approved>false</approved>
</translation>
<translation>
<language>fr-FR</language>
<approved>false</approved>
</translation>
</translations>
</concept_node>
<concept_node>
<name>relation_text_as_paragraphs_help</name>
<description/>
<comment/>
<translations>
<translation>
<language>ca-ES</language>
<approved>false</approved>
</translation>
<translation>
<language>en-US</language>
<approved>false</approved>
</translation>
<translation>
<language>es-ES</language>
<approved>false</approved>
</translation>
<translation>
<language>fr-FR</language>
<approved>false</approved>
</translation>
</translations>
</concept_node>
<concept_node>
<name>suggest_query_entity_detection</name>
<description/>
<comment/>
<translations>
<translation>
<language>ca-ES</language>
<approved>false</approved>
</translation>
<translation>
<language>en-US</language>
<approved>false</approved>
</translation>
<translation>
<language>es-ES</language>
<approved>false</approved>
</translation>
<translation>
<language>fr-FR</language>
<approved>false</approved>
</translation>
</translations>
</concept_node>
<concept_node>
<name>suggest_query_entity_detection_help</name>
<description/>
<comment/>
<translations>
<translation>
<language>ca-ES</language>
<approved>false</approved>
</translation>
<translation>
<language>en-US</language>
<approved>false</approved>
</translation>
<translation>
<language>es-ES</language>
<approved>false</approved>
</translation>
<translation>
<language>fr-FR</language>
<approved>false</approved>
</translation>
</translations>
</concept_node>
<concept_node>
<name>toggle-description</name>
<description/>
Expand Down
12 changes: 10 additions & 2 deletions libs/common/src/assets/i18n/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -1066,12 +1066,20 @@
"search.configuration.generative-answer.rag-strategies.entire-resource.limit-resources": "Limiteu la quantitat de recursos complets que es passaran al LLM",
"search.configuration.generative-answer.rag-strategies.entire-resource.toggle-description": "Passa tot el recurs com a context quan es generen respostes (en lloc de només els paràgrafs recuperats per la consulta de cerca). Nota: aquesta estratègia pot ser cara i/o pot afectar les actuacions.",
"search.configuration.generative-answer.rag-strategies.entire-resource.toggle-label": "Passeu recursos sencers com a context",
"search.configuration.generative-answer.rag-strategies.graph.agentic_graph_only": "Només gràfo personalitzat",
"search.configuration.generative-answer.rag-strategies.graph.agentic_graph_only_help": "Si està activat, només es tenen en compte les relacions extretes d'un agent d'extracció de gràfes per a l'expansió del context.",
"search.configuration.generative-answer.rag-strategies.graph.generative_relation_ranking": "Rànquing amb model generatiu",
"search.configuration.generative-answer.rag-strategies.graph.generative_relation_ranking-help": "Després de la reclassificació regular, utilitzeu un model generatiu per classificar les relacions.\nÉs més lent i consumeix més fitxes, però pot proporcionar millors resultats.",
"search.configuration.generative-answer.rag-strategies.graph.hops": "Salts",
"search.configuration.generative-answer.rag-strategies.graph.hops-description": "Distància màxima per explorar entre nodes.",
"search.configuration.generative-answer.rag-strategies.graph.hops-description": "Nombre de salts que cal fer en explorar el gràfic per a un context rellevant.\nPer exemple, hops=1 explorarà els veïns de les entitats inicials, hops=2 explorarà els veïns dels veïns de les entitats inicials, etc.\nEls valors més grans descobriran relacions més complexes, però també trigaran més temps a calcular.",
"search.configuration.generative-answer.rag-strategies.graph.relation_text_as_paragraphs": "Utilitzar les relacions com a context",
"search.configuration.generative-answer.rag-strategies.graph.relation_text_as_paragraphs_help": "Si està activat, el text de les relacions s'utilitza com a context en lloc de paràgrafs, això permet utilitzar un Top K més gran sense trobar-se amb els límits de context del model generatiu. Si està desactivat, els paràgrafs que contenen les relacions s'utilitzen com a context.",
"search.configuration.generative-answer.rag-strategies.graph.suggest_query_entity_detection": "Cerca difusa per detectar entitats",
"search.configuration.generative-answer.rag-strategies.graph.suggest_query_entity_detection_help": "Utilitza la cerca difusa per detectar entitats. És més ràpid i flexible, però pot tenir problemes per fer coincidir entitats compostes per diverses paraules (es tornarà a la detecció predeterminada si no es detecta cap entitat). La detecció predeterminada és més lenta i precisa, però requereix una coincidència de text exacta entre les entitats del Knowledge Box i les entitats de la consulta.",
"search.configuration.generative-answer.rag-strategies.graph.toggle-description": "Cerca entre les relacions amb els NERs esmentats a la pregunta.",
"search.configuration.generative-answer.rag-strategies.graph.toggle-label": "Gràfo de coneixement",
"search.configuration.generative-answer.rag-strategies.graph.top_k": "Top K",
"search.configuration.generative-answer.rag-strategies.graph.top_k-description": "Nombre màxim de resultats per recuperar.",
"search.configuration.generative-answer.rag-strategies.graph.top_k-description": "Quantitat màxima de resultats per recuperar.",
"search.configuration.generative-answer.rag-strategies.image-warning-box": "Requereix utilitzar OpenAI ChatGPT-Vision o Google Gemini Pro Vision.",
"search.configuration.generative-answer.rag-strategies.incompatible-strategies": "Els paràgrafs adjacents no es poden incloure juntament amb la jerarquia textual.",
"search.configuration.generative-answer.rag-strategies.metadatas.toggle-description": "Cada paràgraf anirà seguit de diferents conjunts de metadades.",
Expand Down
12 changes: 10 additions & 2 deletions libs/common/src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1066,12 +1066,20 @@
"search.configuration.generative-answer.rag-strategies.entire-resource.limit-resources": "Limit the amount of full resources that will be passed to the LLM",
"search.configuration.generative-answer.rag-strategies.entire-resource.toggle-description": "Passes entire resource as context when generating answers (instead of just the paragraphs retrieved by the search query). Note: this strategy can be expensive and/or can impact performances.",
"search.configuration.generative-answer.rag-strategies.entire-resource.toggle-label": "Pass entire resources as context",
"search.configuration.generative-answer.rag-strategies.graph.agentic_graph_only": "Custom graph only",
"search.configuration.generative-answer.rag-strategies.graph.agentic_graph_only_help": "If enabled, only relationships extracted from a graph extraction agent are considered for context expansion.",
"search.configuration.generative-answer.rag-strategies.graph.generative_relation_ranking": "Ranking with generative model",
"search.configuration.generative-answer.rag-strategies.graph.generative_relation_ranking-help": "After regular reranking, use a generative model to rank relationships.\nIt is slower and consumes more tokens, but can provide better results.",
"search.configuration.generative-answer.rag-strategies.graph.hops": "Hops",
"search.configuration.generative-answer.rag-strategies.graph.hops-description": "Maximum distance to explore between nodes.",
"search.configuration.generative-answer.rag-strategies.graph.hops-description": "Number of hops to take when exploring the graph for relevant context.\nFor example, hops=1 will explore the neighbors of the starting entities, hops=2 will explore the neighbors of the neighbors of the starting entities, and so on.\nBigger values will discover more intricate relationships but will also take more time to compute.",
"search.configuration.generative-answer.rag-strategies.graph.relation_text_as_paragraphs": "Use relations as context",
"search.configuration.generative-answer.rag-strategies.graph.relation_text_as_paragraphs_help": "If enabled, the text of the relationships is used as context instead of paragraphs, this enables to use bigger top K values without running into the generative model's context limits. If disabled, the paragraphs that contain the relationships are used as context.",
"search.configuration.generative-answer.rag-strategies.graph.suggest_query_entity_detection": "Fuzzy search to detect entities",
"search.configuration.generative-answer.rag-strategies.graph.suggest_query_entity_detection_help": "Uses fuzzy search to detect entities. It's faster and more flexible but might have trouble matching entities composed of multiple words (it will fallback to default detection if no entities are detected). The default detection is slower and more accurate but requires an exact text match between Knowledge Box entities and entities in the query.",
"search.configuration.generative-answer.rag-strategies.graph.toggle-description": "Search accross relations with NERs mentioned in the question.",
"search.configuration.generative-answer.rag-strategies.graph.toggle-label": "Knowledge graph",
"search.configuration.generative-answer.rag-strategies.graph.top_k": "Top K",
"search.configuration.generative-answer.rag-strategies.graph.top_k-description": "Maximum number of results to retrieve.",
"search.configuration.generative-answer.rag-strategies.graph.top_k-description": "Maximum amount of results to retrieve.",
"search.configuration.generative-answer.rag-strategies.image-warning-box": "Requires using OpenAI ChatGPT-Vision or Google Gemini Pro Vision.",
"search.configuration.generative-answer.rag-strategies.incompatible-strategies": "Neighbouring paragraphs cannot be included along with textual hierarchy.",
"search.configuration.generative-answer.rag-strategies.metadatas.toggle-description": "Each paragraph will be followed by different sets of metadata.",
Expand Down
12 changes: 10 additions & 2 deletions libs/common/src/assets/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -1066,12 +1066,20 @@
"search.configuration.generative-answer.rag-strategies.entire-resource.limit-resources": "Limitar la cantidad de recursos completos que se transferirán al LLM",
"search.configuration.generative-answer.rag-strategies.entire-resource.toggle-description": "Pasa todo el recurso como contexto al generar respuestas (en lugar de solo los párrafos recuperados por la consulta de búsqueda). Nota: esta estrategia puede ser costosa o afectar el rendimiento.",
"search.configuration.generative-answer.rag-strategies.entire-resource.toggle-label": "Pasar recursos completos como contexto",
"search.configuration.generative-answer.rag-strategies.graph.agentic_graph_only": "Solo gráfo personalizado",
"search.configuration.generative-answer.rag-strategies.graph.agentic_graph_only_help": "Si está habilitado, solo se consideran las relaciones extraídas de un agente de extracción de gráfos para la expansión del contexto.",
"search.configuration.generative-answer.rag-strategies.graph.generative_relation_ranking": "Ranking con modelo generativo",
"search.configuration.generative-answer.rag-strategies.graph.generative_relation_ranking-help": "Después de la reclasificación periódica, utilice un modelo generativo para clasificar las relaciones.\nEs más lento y consume más tokens, pero puede brindar mejores resultados.",
"search.configuration.generative-answer.rag-strategies.graph.hops": "Saltos",
"search.configuration.generative-answer.rag-strategies.graph.hops-description": "Distancia máxima a explorar entre nodos.",
"search.configuration.generative-answer.rag-strategies.graph.hops-description": "Número de saltos que se deben realizar al explorar el gráfico para obtener el contexto relevante.\nPor ejemplo, hops=1 explorará los vecinos de las entidades iniciales, hops=2 explorará los vecinos de los vecinos de las entidades iniciales, y así sucesivamente.\nLos valores más grandes descubrirán relaciones más complejas, pero también llevarán más tiempo de cálculo.",
"search.configuration.generative-answer.rag-strategies.graph.relation_text_as_paragraphs": "Utilice las relaciones como contexto",
"search.configuration.generative-answer.rag-strategies.graph.relation_text_as_paragraphs_help": "Si está habilitado, el texto de las relaciones se usa como contexto en lugar de párrafos, lo que permite un Top K más alto sin entrar en los límites de contexto del modelo generativo. Si está deshabilitado, los párrafos que contienen las relaciones se usan como contexto.",
"search.configuration.generative-answer.rag-strategies.graph.suggest_query_entity_detection": "Búsqueda difusa para detectar entidades",
"search.configuration.generative-answer.rag-strategies.graph.suggest_query_entity_detection_help": "Utiliza la búsqueda difusa para detectar entidades. Es más rápida y más flexible, pero puede tener problemas para encontrar entidades compuestas por varias palabras (recurrirá a la detección predeterminada si no se detectan entidades). La detección predeterminada es más lenta y precisa, pero requiere una coincidencia exacta de texto entre las entidades de Knowledge Box y las entidades de la consulta.",
"search.configuration.generative-answer.rag-strategies.graph.toggle-description": "Busque entre las relaciones con los NERs mencionados en la pregunta.",
"search.configuration.generative-answer.rag-strategies.graph.toggle-label": "Gráfo de conocimiento",
"search.configuration.generative-answer.rag-strategies.graph.top_k": "Top K",
"search.configuration.generative-answer.rag-strategies.graph.top_k-description": "Número máximo de resultados a recuperar.",
"search.configuration.generative-answer.rag-strategies.graph.top_k-description": "Cantidad máxima de resultados a recuperar.",
"search.configuration.generative-answer.rag-strategies.image-warning-box": "Requiere el uso de OpenAI ChatGPT-Vision o Google Gemini Pro Vision.",
"search.configuration.generative-answer.rag-strategies.incompatible-strategies": "Los párrafos adyacentes no se pueden incluir junto con la jerarquía textual.",
"search.configuration.generative-answer.rag-strategies.metadatas.toggle-description": "Cada párrafo será seguido por diferentes conjuntos de metadatos.",
Expand Down
Loading

0 comments on commit a1e1506

Please sign in to comment.