forked from innovacion/Mayacontigo
ic
This commit is contained in:
9
apps/inversionistas/api/prompts/__init__.py
Normal file
9
apps/inversionistas/api/prompts/__init__.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
__all__ = ["ORCHESTRATOR_PROMPT", "TOOL_SCHEMAS"]
|
||||
|
||||
prompt_dir = Path(__file__).parent
|
||||
|
||||
ORCHESTRATOR_PROMPT = (prompt_dir / Path("orchestrator.md")).read_text()
|
||||
TOOL_SCHEMAS = json.loads((prompt_dir / Path("tools.json")).read_text())
|
||||
172
apps/inversionistas/api/prompts/orchestrator.md
Normal file
172
apps/inversionistas/api/prompts/orchestrator.md
Normal file
@@ -0,0 +1,172 @@
|
||||
Eres un asistente especializado en proporcionar información precisa y relevante exclusivamente sobre Grupo Financiero Banorte y las empresas asociadas a este grupo. Tu única fuente de información es la base de datos vectorial conectada y las funciones que puedes invocar.
|
||||
|
||||
Es fundamental que evites hacer suposiciones, especulaciones o conclusiones que no estén respaldadas por los datos proporcionados.
|
||||
|
||||
Debes responder siempre en el idioma (inglés o español) utilizado en la última consulta del usuario. Solo puedes basarte en la información recuperada de la base de datos vectorial o SQL. Si se accede a una fuente externa o falta algún dato relevante, debes incluir la URL correspondiente en tu respuesta,
|
||||
Muy Importante responder en el idioma del usuario aun que la tool este en otro idioma.
|
||||
|
||||
Definiciones clave:
|
||||
|
||||
ROE (Rendimiento sobre el Capital Contable) y sus sinónimos, que deberán utilizarse según el contexto, incluyen:
|
||||
Rentabilidad Financiera
|
||||
Rentabilidad sobre el Patrimonio
|
||||
Rentabilidad sobre el Capital Propio
|
||||
Retorno sobre el Patrimonio Neto
|
||||
Retorno sobre el Capital Propio
|
||||
Rendimiento del Capital Propio
|
||||
Rendimiento de Capital
|
||||
Return on Equity (ROE)
|
||||
Equity Return
|
||||
Shareholders' Return
|
||||
Return on Net Worth
|
||||
Return on Shareholders' Equity
|
||||
Net Worth Return
|
||||
|
||||
ROA (Rendimiento sobre Activos) y sus sinónimos, que deberán utilizarse según el contexto, incluyen:
|
||||
Rentabilidad sobre Activos
|
||||
Retorno sobre Activos
|
||||
Rentabilidad de los Activos
|
||||
Retorno de los Activos
|
||||
Rendimiento de los Activos
|
||||
Return on Assets (ROA)
|
||||
Asset Return
|
||||
Return on Total Assets
|
||||
Asset Profitability
|
||||
Return on Investment in Assets
|
||||
roa
|
||||
|
||||
ROTE (Rendimiento sobre Capital Tangible) y sus sinónimos, que deberán utilizarse según el contexto, incluyen:
|
||||
Rentabilidad sobre el Patrimonio Tangible
|
||||
Rentabilidad sobre el Capital Tangible
|
||||
Retorno sobre el Patrimonio Tangible
|
||||
Retorno sobre el Capital Tangible
|
||||
Rendimiento del Patrimonio Tangible
|
||||
Rendimiento del Capital Tangible
|
||||
Return on Tangible Equity (ROTE)
|
||||
Tangible Equity Return
|
||||
Tangible Return on Equity
|
||||
Tangible Net Worth Return
|
||||
Return on Tangible Net Worth
|
||||
rote
|
||||
|
||||
MIN (Margen de Interés Neto) y sus sinónimos, que deberán utilizarse según el contexto, incluyen:
|
||||
MIN
|
||||
min
|
||||
Margen Neto de Intereses
|
||||
Margen de Intereses
|
||||
Margen Financiero Neto
|
||||
Margen Neto de Financiamiento
|
||||
Margen Neto de Ingresos por Intereses
|
||||
|
||||
MIN Ajustado por Riesgos Crediticios y sus sinónimos, que deberán utilizarse según el contexto, incluyen:
|
||||
Margen Neto de Intereses Ajustado por Riesgos Crediticios
|
||||
Margen de Intereses Ajustado por Riesgos Crediticios
|
||||
Margen Financiero Neto Ajustado por Riesgos Crediticios
|
||||
Margen Neto de Financiamiento Ajustado por Riesgos Crediticios
|
||||
Margen Neto de Ingresos por Intereses Ajustado por Riesgos Crediticios
|
||||
min ajustado
|
||||
min_ajustado
|
||||
|
||||
Índice de Eficiencia y sus sinónimos, que deberán utilizarse según el contexto, incluyen:
|
||||
Ratio de Eficiencia
|
||||
Coeficiente de Eficiencia
|
||||
Índice de Productividad
|
||||
Ratio de Productividad
|
||||
indice de eficiencia
|
||||
|
||||
|
||||
Costo de Riesgo y sus sinónimos, que deberán utilizarse según el contexto, incluyen:
|
||||
Coste del Riesgo
|
||||
Costo de Riesgo
|
||||
Costo Total del Riesgo
|
||||
Coste Total del Riesgo
|
||||
Costo de Gestión de Riesgos
|
||||
costo_riesgo
|
||||
|
||||
Índice de Morosidad:
|
||||
Ratio de Morosidad
|
||||
Tasa de Morosidad
|
||||
Índice de Incumplimiento
|
||||
Tasa de Incumplimiento
|
||||
Índice de Cartera Vencida
|
||||
indice de morosisdad
|
||||
indice_morocidad
|
||||
|
||||
Índice de Cobertura:
|
||||
Ratio de Cobertura
|
||||
Coeficiente de Cobertura
|
||||
Índice de Protección
|
||||
ICOB
|
||||
indice_covertura
|
||||
|
||||
Tasa de Impuestos:
|
||||
Tasa Impositiva
|
||||
Tipo Impositivo
|
||||
Tasa Tributaria
|
||||
Tipo de Gravamen
|
||||
Tasa Fiscal
|
||||
taza_impuestos
|
||||
|
||||
Eficiencia Operativa:
|
||||
Eficiencia en Operaciones
|
||||
Eficiencia de Operaciones
|
||||
Eficiencia Operacional
|
||||
Rendimiento Operativo
|
||||
Productividad Operativa
|
||||
eficiencia_op
|
||||
|
||||
Índice de Apalancamiento:
|
||||
Ratio de Apalancamiento
|
||||
Coeficiente de Apalancamiento
|
||||
Índice de Endeudamiento
|
||||
Ratio de Endeudamiento
|
||||
Índice de Deuda
|
||||
indice_ap
|
||||
|
||||
Liquidez:
|
||||
Capacidad de Pago
|
||||
Solvencia a Corto Plazo
|
||||
Disponibilidad de Efectivo
|
||||
Facilidad de Conversión a Efectivo
|
||||
Fluidez Financiera
|
||||
liqidez
|
||||
|
||||
Nomenclatura a considerar:
|
||||
El primer trimestre de 2023 se puede referir de las siguientes maneras, dependiendo del contexto y del formato temporal utilizado:
|
||||
1T23 o
|
||||
1Q23
|
||||
De manera similar, para el segundo trimestre de 2024, se utilizaría:
|
||||
2T24 o
|
||||
2Q24
|
||||
Y así sucesivamente para los trimestres de años posteriores o pasados.
|
||||
|
||||
Empresas a tomar en cuenta:
|
||||
1.- GFNorte Consolidado (GFNorte,GFNORTE): Para obtener datos financieros específicos de GFNorte, puedes utilizar la herramienta "getGFNORTEData".
|
||||
2.- Banorte Consolidado (Banorte): Para obtener datos financieros específicos de GFNorte, puedes utilizar la herramienta "getBanorteConsolidadoData".
|
||||
3.- Almacenadora Consolidado: Para obtener datos financieros específicos de Almacenadora Consolidado, puedes utilizar la herramienta "getAlmacenadoraConsolidadoData".
|
||||
4.- Arrendadora y Factor Consolidado: Para obtener datos financieros específicos de Arrendadora y Factor Consolidado, puedes utilizar la herramienta "getArrendadoraFactorConsolidado".
|
||||
5.- Casa de Bolsa Consolidado: Para obtener datos financieros específicos datos financieros específicos de Casa de Bolsa Consolidado, puedes utilizar la herramienta "getCasadeBolsaConsolidado".
|
||||
6.- Operadora de Fondos: Para obtener datos financieros específicos de Operadora de Fondos , puedes utilizar la herramienta "getOperadoradeFondos".
|
||||
7.- Sector Bursatil: Para obtener datos financieros específicos de Sector Bursatil , puedes utilizar la herramienta "getSectorBursatil".
|
||||
8.- Sector BAP Consolidado: Para obtener datos financieros específicos de Sector BAP Consolidado , puedes utilizar la herramienta "getSectorBAPConsolidado".
|
||||
9.- Seguros: Para obtener datos financieros específicos de Seguros, puedes utilizar la herramienta "getSeguros".
|
||||
10.- Pensiones: Para obtener datos financieros específicos de Pensiones, puedes utilizar la herramienta "getPensiones".
|
||||
11.- Bineo: Para obtener datos financieros específicos de Bineo, puedes utilizar la herramienta "getBineo".
|
||||
13.- Sector Banca: Para obtener datos financieros específicos de Sector Banca, puedes utilizar la herramienta "getSectorBanca".
|
||||
14.- Holding: Para obtener datos financieros específicos de Holding, puedes utilizar la herramienta "getHolding".
|
||||
15.- Banorte Financial Services: Para obtener datos financieros específicos de Banorte Financial Services, puedes utilizar la herramienta "getBanorteFinancialServices".
|
||||
16.- Fideicomiso Bursa GEM: Para obtener datos financieros específicos de Fideicomiso Bursa GEM, puedes utilizar la herramienta "getFideicomisoBursaGEM".
|
||||
17.- Tarjetas del Futuro: Para obtener datos financieros específicos de Tarjetas del Futuro, puedes utilizar la herramienta "getTarjetasdelFuturo".
|
||||
18.- Afore: Para obtener datos financieros específicos de Afore, puedes utilizar la herramienta "getAfore".
|
||||
19.- Banorte Futuro: Para obtener datos financieros específicos de Banorte Futuro, puedes utilizar la herramienta "getBanorteFuturo".
|
||||
20.- Seguros Sin Banorte Futuro: Para obtener datos financieros específicos de Seguros Sin Banorte Futuro, puedes utilizar la herramienta "getSegurosSinBanorteFuturo".
|
||||
21.- Assist the user in finding resources, key concepts, and relevant keywords. This function searches for data and concepts—such as 'Banorte’s Dividend,' 'Banorte Financial Group Structure,' 'banking information in Mexico,' 'quarterly report location,' and more—within the vector database , puedes utilizar la herramienta : "getInformationalData"
|
||||
|
||||
Other tools :
|
||||
Retrieve informational data to help the user Assist the user in finding resources, key concepts, and relevant keywords. This function searches for data and concepts—such as 'Banorte’s Dividend,' 'Banorte Financial Group Structure,' 'banking information in Mexico,' 'quarterly report location,' and more—within the vector database.
|
||||
will return where the user can find the information, puedes utilizar la herramienta
|
||||
: "getInformationalData"
|
||||
|
||||
|
||||
Siempre que sea posible, utiliza una función o herramienta integrada para proporcionar respuestas basadas en la información disponible.
|
||||
If a required field or detail is missing for a search, clearly notify the user and provide guidance on the missing information.
|
||||
779
apps/inversionistas/api/prompts/tools.json
Normal file
779
apps/inversionistas/api/prompts/tools.json
Normal file
@@ -0,0 +1,779 @@
|
||||
[
|
||||
{
|
||||
"type": "function",
|
||||
"function": {
|
||||
"name": "getGFNORTEData",
|
||||
"description": "Retrieve 'GFNORTE (GF NORTE)' data for a specific financial concept, year, and quarter or trimester. The data is stored in a SQLite database. If one of the parameters is missing, let the user know.",
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"concept": {
|
||||
"type": "string",
|
||||
"description": "The financial concept to retrieve data for. It must be either 'roe','roa','rote','min', 'min_ajustado', 'indice_eficiencia', 'costo_riesgo', 'indice_morocidad', 'indice_covertura', 'taza_impuestos', 'eficiencia_op', 'indice_ap', 'liqidez'. (The concept is case-insensitive, but must be one of these options)",
|
||||
"enum": [
|
||||
"roe",
|
||||
"roa",
|
||||
"rote",
|
||||
"min",
|
||||
"min_ajustado",
|
||||
"indice_eficiencia",
|
||||
"costo_riesgo",
|
||||
"indice_morocidad",
|
||||
"indice_covertura",
|
||||
"taza_impuestos",
|
||||
"eficiencia_op",
|
||||
"indice_ap",
|
||||
"liqidez"
|
||||
]
|
||||
},
|
||||
"year": {
|
||||
"type": "integer",
|
||||
"description": "The year of the data"
|
||||
},
|
||||
"quarter": {
|
||||
"type": "integer",
|
||||
"description": "The quarter or trimester of the year (1-4)"
|
||||
}
|
||||
},
|
||||
"required": ["year", "quarter"]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "function",
|
||||
"function": {
|
||||
"name": "getBanorteConsolidadoData",
|
||||
"description": "Retrieve 'Banorte Consolidado or Banorte' data for a specific financial concept, year, and quarter or trimester. The data is stored in a SQLite database. If one of the parameters is missing, let the user know.",
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"concept": {
|
||||
"type": "string",
|
||||
"description": "The financial concept to retrieve data for. It must be either 'roe','roa','rote','min', 'min_ajustado', 'indice_eficiencia', 'costo_riesgo', 'indice_morocidad', 'indice_covertura', 'taza_impuestos', 'eficiencia_op', 'indice_ap', 'liqidez'. (The concept is case-insensitive, but must be one of these options)",
|
||||
"enum": [
|
||||
"roe",
|
||||
"roa",
|
||||
"rote",
|
||||
"min",
|
||||
"min_ajustado",
|
||||
"indice_eficiencia",
|
||||
"costo_riesgo",
|
||||
"indice_morocidad",
|
||||
"indice_covertura",
|
||||
"taza_impuestos",
|
||||
"eficiencia_op",
|
||||
"indice_ap",
|
||||
"liqidez"
|
||||
]
|
||||
},
|
||||
"year": {
|
||||
"type": "integer",
|
||||
"description": "The year of the data"
|
||||
},
|
||||
"quarter": {
|
||||
"type": "integer",
|
||||
"description": "The quarter or trimester of the year (1-4)"
|
||||
}
|
||||
},
|
||||
"required": ["year", "quarter"]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "function",
|
||||
"function": {
|
||||
"name": "getAlmacenadoraConsolidadoData",
|
||||
"description": "Retrieve 'Almacenadora Consolidado' data for a specific financial concept, year, and quarter or trimester. The data is stored in a SQLite database. If one of the parameters is missing, let the user know.",
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"concept": {
|
||||
"type": "string",
|
||||
"description": "The financial concept to retrieve data for. It must be either 'roe','roa','rote','min', 'min_ajustado', 'indice_eficiencia', 'costo_riesgo', 'indice_morocidad', 'indice_covertura', 'taza_impuestos', 'eficiencia_op', 'indice_ap', 'liqidez'. (The concept is case-insensitive, but must be one of these options)",
|
||||
"enum": [
|
||||
"roe",
|
||||
"roa",
|
||||
"rote",
|
||||
"min",
|
||||
"min_ajustado",
|
||||
"indice_eficiencia",
|
||||
"costo_riesgo",
|
||||
"indice_morocidad",
|
||||
"indice_covertura",
|
||||
"taza_impuestos",
|
||||
"eficiencia_op",
|
||||
"indice_ap",
|
||||
"liqidez"
|
||||
]
|
||||
},
|
||||
"year": {
|
||||
"type": "integer",
|
||||
"description": "The year of the data"
|
||||
},
|
||||
"quarter": {
|
||||
"type": "integer",
|
||||
"description": "The quarter or trimester of the year (1-4)"
|
||||
}
|
||||
},
|
||||
"required": ["year", "quarter"]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "function",
|
||||
"function": {
|
||||
"name": "getArrendadoraFactorConsolidado",
|
||||
"description": "Retrieve Arrendadora y Factor Consolidado data for a specific financial concept, year, and quarter or trimester. The data is stored in a SQLite database. If one of the parameters is missing, let the user know.",
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"concept": {
|
||||
"type": "string",
|
||||
"description": "The financial concept to retrieve data for. It must be either 'roe','roa','rote','min', 'min_ajustado', 'indice_eficiencia', 'costo_riesgo', 'indice_morocidad', 'indice_covertura', 'taza_impuestos', 'eficiencia_op', 'indice_ap', 'liqidez'. (The concept is case-insensitive, but must be one of these options)",
|
||||
"enum": [
|
||||
"roe",
|
||||
"roa",
|
||||
"rote",
|
||||
"min",
|
||||
"min_ajustado",
|
||||
"indice_eficiencia",
|
||||
"costo_riesgo",
|
||||
"indice_morocidad",
|
||||
"indice_covertura",
|
||||
"taza_impuestos",
|
||||
"eficiencia_op",
|
||||
"indice_ap",
|
||||
"liqidez"
|
||||
]
|
||||
},
|
||||
"year": {
|
||||
"type": "integer",
|
||||
"description": "The year of the data"
|
||||
},
|
||||
"quarter": {
|
||||
"type": "integer",
|
||||
"description": "The quarter or trimester of the year (1-4)"
|
||||
}
|
||||
},
|
||||
"required": ["year", "quarter"]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "function",
|
||||
"function": {
|
||||
"name": "getCasadeBolsaConsolidado",
|
||||
"description": "Retrieve 'Casa de Bolsa Consolidado' data for a specific financial concept, year, and quarter or trimester. The data is stored in a SQLite database. If one of the parameters is missing, let the user know.",
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"concept": {
|
||||
"type": "string",
|
||||
"description": "The financial concept to retrieve data for. It must be either 'roe','roa','rote','min', 'min_ajustado', 'indice_eficiencia', 'costo_riesgo', 'indice_morocidad', 'indice_covertura', 'taza_impuestos', 'eficiencia_op', 'indice_ap', 'liqidez'. (The concept is case-insensitive, but must be one of these options)",
|
||||
"enum": [
|
||||
"roe",
|
||||
"roa",
|
||||
"rote",
|
||||
"min",
|
||||
"min_ajustado",
|
||||
"indice_eficiencia",
|
||||
"costo_riesgo",
|
||||
"indice_morocidad",
|
||||
"indice_covertura",
|
||||
"taza_impuestos",
|
||||
"eficiencia_op",
|
||||
"indice_ap",
|
||||
"liqidez"
|
||||
]
|
||||
},
|
||||
"year": {
|
||||
"type": "integer",
|
||||
"description": "The year of the data"
|
||||
},
|
||||
"quarter": {
|
||||
"type": "integer",
|
||||
"description": "The quarter or trimester of the year (1-4)"
|
||||
}
|
||||
},
|
||||
"required": ["year", "quarter"]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "function",
|
||||
"function": {
|
||||
"name": "getOperadoradeFondos",
|
||||
"description": "Retrieve 'Operadora de Fondos' data for a specific financial concept, year, and quarter or trimester. The data is stored in a SQLite database. If one of the parameters is missing, let the user know.",
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"concept": {
|
||||
"type": "string",
|
||||
"description": "The financial concept to retrieve data for. It must be either 'roe','roa','rote','min', 'min_ajustado', 'indice_eficiencia', 'costo_riesgo', 'indice_morocidad', 'indice_covertura', 'taza_impuestos', 'eficiencia_op', 'indice_ap', 'liqidez'. (The concept is case-insensitive, but must be one of these options)",
|
||||
"enum": [
|
||||
"roe",
|
||||
"roa",
|
||||
"rote",
|
||||
"min",
|
||||
"min_ajustado",
|
||||
"indice_eficiencia",
|
||||
"costo_riesgo",
|
||||
"indice_morocidad",
|
||||
"indice_covertura",
|
||||
"taza_impuestos",
|
||||
"eficiencia_op",
|
||||
"indice_ap",
|
||||
"liqidez"
|
||||
]
|
||||
},
|
||||
"year": {
|
||||
"type": "integer",
|
||||
"description": "The year of the data"
|
||||
},
|
||||
"quarter": {
|
||||
"type": "integer",
|
||||
"description": "The quarter or trimester of the year (1-4)"
|
||||
}
|
||||
},
|
||||
"required": ["year", "quarter"]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "function",
|
||||
"function": {
|
||||
"name": "getSectorBursatil",
|
||||
"description": "Retrieve 'Sector Bursatil' data for a specific financial concept, year, and quarter or trimester. The data is stored in a SQLite database. If one of the parameters is missing, let the user know.",
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"concept": {
|
||||
"type": "string",
|
||||
"description": "The financial concept to retrieve data for. It must be either 'roe','roa','rote','min', 'min_ajustado', 'indice_eficiencia', 'costo_riesgo', 'indice_morocidad', 'indice_covertura', 'taza_impuestos', 'eficiencia_op', 'indice_ap', 'liqidez'. (The concept is case-insensitive, but must be one of these options)",
|
||||
"enum": [
|
||||
"roe",
|
||||
"roa",
|
||||
"rote",
|
||||
"min",
|
||||
"min_ajustado",
|
||||
"indice_eficiencia",
|
||||
"costo_riesgo",
|
||||
"indice_morocidad",
|
||||
"indice_covertura",
|
||||
"taza_impuestos",
|
||||
"eficiencia_op",
|
||||
"indice_ap",
|
||||
"liqidez"
|
||||
]
|
||||
},
|
||||
"year": {
|
||||
"type": "integer",
|
||||
"description": "The year of the data"
|
||||
},
|
||||
"quarter": {
|
||||
"type": "integer",
|
||||
"description": "The quarter or trimester of the year (1-4)"
|
||||
}
|
||||
},
|
||||
"required": ["year", "quarter"]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "function",
|
||||
"function": {
|
||||
"name": "getSectorBAPConsolidado",
|
||||
"description": "Retrieve 'Sector BAP Consolidado' data for a specific financial concept, year, and quarter or trimester. The data is stored in a SQLite database. If one of the parameters is missing, let the user know.",
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"concept": {
|
||||
"type": "string",
|
||||
"description": "The financial concept to retrieve data for. It must be either 'roe','roa','rote','min', 'min_ajustado', 'indice_eficiencia', 'costo_riesgo', 'indice_morocidad', 'indice_covertura', 'taza_impuestos', 'eficiencia_op', 'indice_ap', 'liqidez'. (The concept is case-insensitive, but must be one of these options)",
|
||||
"enum": [
|
||||
"roe",
|
||||
"roa",
|
||||
"rote",
|
||||
"min",
|
||||
"min_ajustado",
|
||||
"indice_eficiencia",
|
||||
"costo_riesgo",
|
||||
"indice_morocidad",
|
||||
"indice_covertura",
|
||||
"taza_impuestos",
|
||||
"eficiencia_op",
|
||||
"indice_ap",
|
||||
"liqidez"
|
||||
]
|
||||
},
|
||||
"year": {
|
||||
"type": "integer",
|
||||
"description": "The year of the data"
|
||||
},
|
||||
"quarter": {
|
||||
"type": "integer",
|
||||
"description": "The quarter or trimester of the year (1-4)"
|
||||
}
|
||||
},
|
||||
"required": ["year", "quarter"]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "function",
|
||||
"function": {
|
||||
"name": "getSeguros",
|
||||
"description": "Retrieve 'Seguros' data for a specific financial concept, year, and quarter or trimester. The data is stored in a SQLite database. If one of the parameters is missing, let the user know.",
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"concept": {
|
||||
"type": "string",
|
||||
"description": "The financial concept to retrieve data for. It must be either 'roe','roa','rote','min', 'min_ajustado', 'indice_eficiencia', 'costo_riesgo', 'indice_morocidad', 'indice_covertura', 'taza_impuestos', 'eficiencia_op', 'indice_ap', 'liqidez'. (The concept is case-insensitive, but must be one of these options)",
|
||||
"enum": [
|
||||
"roe",
|
||||
"roa",
|
||||
"rote",
|
||||
"min",
|
||||
"min_ajustado",
|
||||
"indice_eficiencia",
|
||||
"costo_riesgo",
|
||||
"indice_morocidad",
|
||||
"indice_covertura",
|
||||
"taza_impuestos",
|
||||
"eficiencia_op",
|
||||
"indice_ap",
|
||||
"liqidez"
|
||||
]
|
||||
},
|
||||
"year": {
|
||||
"type": "integer",
|
||||
"description": "The year of the data"
|
||||
},
|
||||
"quarter": {
|
||||
"type": "integer",
|
||||
"description": "The quarter or trimester of the year (1-4)"
|
||||
}
|
||||
},
|
||||
"required": ["year", "quarter"]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "function",
|
||||
"function": {
|
||||
"name": "getPensiones",
|
||||
"description": "Retrieve 'Pensiones' data for a specific financial concept, year, and quarter or trimester. The data is stored in a SQLite database. If one of the parameters is missing, let the user know.",
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"concept": {
|
||||
"type": "string",
|
||||
"description": "The financial concept to retrieve data for. It must be either 'roe','roa','rote','min', 'min_ajustado', 'indice_eficiencia', 'costo_riesgo', 'indice_morocidad', 'indice_covertura', 'taza_impuestos', 'eficiencia_op', 'indice_ap', 'liqidez'. (The concept is case-insensitive, but must be one of these options)",
|
||||
"enum": [
|
||||
"roe",
|
||||
"roa",
|
||||
"rote",
|
||||
"min",
|
||||
"min_ajustado",
|
||||
"indice_eficiencia",
|
||||
"costo_riesgo",
|
||||
"indice_morocidad",
|
||||
"indice_covertura",
|
||||
"taza_impuestos",
|
||||
"eficiencia_op",
|
||||
"indice_ap",
|
||||
"liqidez"
|
||||
]
|
||||
},
|
||||
"year": {
|
||||
"type": "integer",
|
||||
"description": "The year of the data"
|
||||
},
|
||||
"quarter": {
|
||||
"type": "integer",
|
||||
"description": "The quarter or trimester of the year (1-4)"
|
||||
}
|
||||
},
|
||||
"required": ["year", "quarter"]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "function",
|
||||
"function": {
|
||||
"name": "getBineo",
|
||||
"description": "Retrieve 'Bineo' data for a specific financial concept, year, and quarter or trimester. The data is stored in a SQLite database. If one of the parameters is missing, let the user know.",
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"concept": {
|
||||
"type": "string",
|
||||
"description": "The financial concept to retrieve data for. It must be either 'roe','roa','rote','min', 'min_ajustado', 'indice_eficiencia', 'costo_riesgo', 'indice_morocidad', 'indice_covertura', 'taza_impuestos', 'eficiencia_op', 'indice_ap', 'liqidez'. (The concept is case-insensitive, but must be one of these options)",
|
||||
"enum": [
|
||||
"roe",
|
||||
"roa",
|
||||
"rote",
|
||||
"min",
|
||||
"min_ajustado",
|
||||
"indice_eficiencia",
|
||||
"costo_riesgo",
|
||||
"indice_morocidad",
|
||||
"indice_covertura",
|
||||
"taza_impuestos",
|
||||
"eficiencia_op",
|
||||
"indice_ap",
|
||||
"liqidez"
|
||||
]
|
||||
},
|
||||
"year": {
|
||||
"type": "integer",
|
||||
"description": "The year of the data"
|
||||
},
|
||||
"quarter": {
|
||||
"type": "integer",
|
||||
"description": "The quarter or trimester of the year (1-4)"
|
||||
}
|
||||
},
|
||||
"required": ["year", "quarter"]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "function",
|
||||
"function": {
|
||||
"name": "getSectorBanca",
|
||||
"description": "Retrieve 'Sector Banca' data for a specific financial concept, year, and quarter or trimester. The data is stored in a SQLite database. If one of the parameters is missing, let the user know.",
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"concept": {
|
||||
"type": "string",
|
||||
"description": "The financial concept to retrieve data for. It must be either 'roe','roa','rote','min', 'min_ajustado', 'indice_eficiencia', 'costo_riesgo', 'indice_morocidad', 'indice_covertura', 'taza_impuestos', 'eficiencia_op', 'indice_ap', 'liqidez'. (The concept is case-insensitive, but must be one of these options)",
|
||||
"enum": [
|
||||
"roe",
|
||||
"roa",
|
||||
"rote",
|
||||
"min",
|
||||
"min_ajustado",
|
||||
"indice_eficiencia",
|
||||
"costo_riesgo",
|
||||
"indice_morocidad",
|
||||
"indice_covertura",
|
||||
"taza_impuestos",
|
||||
"eficiencia_op",
|
||||
"indice_ap",
|
||||
"liqidez"
|
||||
]
|
||||
},
|
||||
"year": {
|
||||
"type": "integer",
|
||||
"description": "The year of the data"
|
||||
},
|
||||
"quarter": {
|
||||
"type": "integer",
|
||||
"description": "The quarter or trimester of the year (1-4)"
|
||||
}
|
||||
},
|
||||
"required": ["year", "quarter"]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "function",
|
||||
"function": {
|
||||
"name": "getHolding",
|
||||
"description": "Retrieve 'Holding' data for a specific financial concept, year, and quarter or trimester. The data is stored in a SQLite database. If one of the parameters is missing, let the user know.",
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"concept": {
|
||||
"type": "string",
|
||||
"description": "The financial concept to retrieve data for. It must be either 'roe','roa','rote','min', 'min_ajustado', 'indice_eficiencia', 'costo_riesgo', 'indice_morocidad', 'indice_covertura', 'taza_impuestos', 'eficiencia_op', 'indice_ap', 'liqidez'. (The concept is case-insensitive, but must be one of these options)",
|
||||
"enum": [
|
||||
"roe",
|
||||
"roa",
|
||||
"rote",
|
||||
"min",
|
||||
"min_ajustado",
|
||||
"indice_eficiencia",
|
||||
"costo_riesgo",
|
||||
"indice_morocidad",
|
||||
"indice_covertura",
|
||||
"taza_impuestos",
|
||||
"eficiencia_op",
|
||||
"indice_ap",
|
||||
"liqidez"
|
||||
]
|
||||
},
|
||||
"year": {
|
||||
"type": "integer",
|
||||
"description": "The year of the data"
|
||||
},
|
||||
"quarter": {
|
||||
"type": "integer",
|
||||
"description": "The quarter or trimester of the year (1-4)"
|
||||
}
|
||||
},
|
||||
"required": ["year", "quarter"]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "function",
|
||||
"function": {
|
||||
"name": "getBanorteFinancialServices",
|
||||
"description": "Retrieve 'Banorte Financial Services' data for a specific financial concept, year, and quarter or trimester. The data is stored in a SQLite database. If one of the parameters is missing, let the user know.",
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"concept": {
|
||||
"type": "string",
|
||||
"description": "The financial concept to retrieve data for. It must be either 'roe','roa','rote','min', 'min_ajustado', 'indice_eficiencia', 'costo_riesgo', 'indice_morocidad', 'indice_covertura', 'taza_impuestos', 'eficiencia_op', 'indice_ap', 'liqidez'. (The concept is case-insensitive, but must be one of these options)",
|
||||
"enum": [
|
||||
"roe",
|
||||
"roa",
|
||||
"rote",
|
||||
"min",
|
||||
"min_ajustado",
|
||||
"indice_eficiencia",
|
||||
"costo_riesgo",
|
||||
"indice_morocidad",
|
||||
"indice_covertura",
|
||||
"taza_impuestos",
|
||||
"eficiencia_op",
|
||||
"indice_ap",
|
||||
"liqidez"
|
||||
]
|
||||
},
|
||||
"year": {
|
||||
"type": "integer",
|
||||
"description": "The year of the data"
|
||||
},
|
||||
"quarter": {
|
||||
"type": "integer",
|
||||
"description": "The quarter or trimester of the year (1-4)"
|
||||
}
|
||||
},
|
||||
"required": ["year", "quarter"]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "function",
|
||||
"function": {
|
||||
"name": "getFideicomisoBursaGEM",
|
||||
"description": "Retrieve 'Fideicomiso Bursa GEM' data for a specific financial concept, year, and quarter or trimester. The data is stored in a SQLite database. If one of the parameters is missing, let the user know.",
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"concept": {
|
||||
"type": "string",
|
||||
"description": "The financial concept to retrieve data for. It must be either 'roe','roa','rote','min', 'min_ajustado', 'indice_eficiencia', 'costo_riesgo', 'indice_morocidad', 'indice_covertura', 'taza_impuestos', 'eficiencia_op', 'indice_ap', 'liqidez'. (The concept is case-insensitive, but must be one of these options)",
|
||||
"enum": [
|
||||
"roe",
|
||||
"roa",
|
||||
"rote",
|
||||
"min",
|
||||
"min_ajustado",
|
||||
"indice_eficiencia",
|
||||
"costo_riesgo",
|
||||
"indice_morocidad",
|
||||
"indice_covertura",
|
||||
"taza_impuestos",
|
||||
"eficiencia_op",
|
||||
"indice_ap",
|
||||
"liqidez"
|
||||
]
|
||||
},
|
||||
"year": {
|
||||
"type": "integer",
|
||||
"description": "The year of the data"
|
||||
},
|
||||
"quarter": {
|
||||
"type": "integer",
|
||||
"description": "The quarter or trimester of the year (1-4)"
|
||||
}
|
||||
},
|
||||
"required": ["year", "quarter"]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "function",
|
||||
"function": {
|
||||
"name": "getTarjetasdelFuturo",
|
||||
"description": "Retrieve 'Tarjetas del Futuro' data for a specific financial concept, year, and quarter or trimester. The data is stored in a SQLite database. If one of the parameters is missing, let the user know.",
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"concept": {
|
||||
"type": "string",
|
||||
"description": "The financial concept to retrieve data for. It must be either 'roe','roa','rote','min', 'min_ajustado', 'indice_eficiencia', 'costo_riesgo', 'indice_morocidad', 'indice_covertura', 'taza_impuestos', 'eficiencia_op', 'indice_ap', 'liqidez'. (The concept is case-insensitive, but must be one of these options)",
|
||||
"enum": [
|
||||
"roe",
|
||||
"roa",
|
||||
"rote",
|
||||
"min",
|
||||
"min_ajustado",
|
||||
"indice_eficiencia",
|
||||
"costo_riesgo",
|
||||
"indice_morocidad",
|
||||
"indice_covertura",
|
||||
"taza_impuestos",
|
||||
"eficiencia_op",
|
||||
"indice_ap",
|
||||
"liqidez"
|
||||
]
|
||||
},
|
||||
"year": {
|
||||
"type": "integer",
|
||||
"description": "The year of the data"
|
||||
},
|
||||
"quarter": {
|
||||
"type": "integer",
|
||||
"description": "The quarter or trimester of the year (1-4)"
|
||||
}
|
||||
},
|
||||
"required": ["year", "quarter"]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "function",
|
||||
"function": {
|
||||
"name": "getAfore",
|
||||
"description": "Retrieve 'Afore' data for a specific financial concept, year, and quarter or trimester. The data is stored in a SQLite database. If one of the parameters is missing, let the user know.",
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"concept": {
|
||||
"type": "string",
|
||||
"description": "The financial concept to retrieve data for. It must be either 'roe','roa','rote','min', 'min_ajustado', 'indice_eficiencia', 'costo_riesgo', 'indice_morocidad', 'indice_covertura', 'taza_impuestos', 'eficiencia_op', 'indice_ap', 'liqidez'. (The concept is case-insensitive, but must be one of these options)",
|
||||
"enum": [
|
||||
"roe",
|
||||
"roa",
|
||||
"rote",
|
||||
"min",
|
||||
"min_ajustado",
|
||||
"indice_eficiencia",
|
||||
"costo_riesgo",
|
||||
"indice_morocidad",
|
||||
"indice_covertura",
|
||||
"taza_impuestos",
|
||||
"eficiencia_op",
|
||||
"indice_ap",
|
||||
"liqidez"
|
||||
]
|
||||
},
|
||||
"year": {
|
||||
"type": "integer",
|
||||
"description": "The year of the data"
|
||||
},
|
||||
"quarter": {
|
||||
"type": "integer",
|
||||
"description": "The quarter or trimester of the year (1-4)"
|
||||
}
|
||||
},
|
||||
"required": ["year", "quarter"]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "function",
|
||||
"function": {
|
||||
"name": "getBanorteFuturo",
|
||||
"description": "Retrieve 'Banorte Futuro' data for a specific financial concept, year, and quarter or trimester. The data is stored in a SQLite database. If one of the parameters is missing, let the user know.",
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"concept": {
|
||||
"type": "string",
|
||||
"description": "The financial concept to retrieve data for. It must be either 'roe','roa','rote','min', 'min_ajustado', 'indice_eficiencia', 'costo_riesgo', 'indice_morocidad', 'indice_covertura', 'taza_impuestos', 'eficiencia_op', 'indice_ap', 'liqidez'. (The concept is case-insensitive, but must be one of these options)",
|
||||
"enum": [
|
||||
"roe",
|
||||
"roa",
|
||||
"rote",
|
||||
"min",
|
||||
"min_ajustado",
|
||||
"indice_eficiencia",
|
||||
"costo_riesgo",
|
||||
"indice_morocidad",
|
||||
"indice_covertura",
|
||||
"taza_impuestos",
|
||||
"eficiencia_op",
|
||||
"indice_ap",
|
||||
"liqidez"
|
||||
]
|
||||
},
|
||||
"year": {
|
||||
"type": "integer",
|
||||
"description": "The year of the data"
|
||||
},
|
||||
"quarter": {
|
||||
"type": "integer",
|
||||
"description": "The quarter or trimester of the year (1-4)"
|
||||
}
|
||||
},
|
||||
"required": ["year", "quarter"]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "function",
|
||||
"function": {
|
||||
"name": "getSegurosSinBanorteFuturo",
|
||||
"description": "Retrieve 'get Seguros Sin Banorte Futuro' data for a specific financial concept, year, and quarter or trimester. The data is stored in a SQLite database. If one of the parameters is missing, let the user know.",
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"concept": {
|
||||
"type": "string",
|
||||
"description": "The financial concept to retrieve data for. It must be either 'roe','roa','rote','min', 'min_ajustado', 'indice_eficiencia', 'costo_riesgo', 'indice_morocidad', 'indice_covertura', 'taza_impuestos', 'eficiencia_op', 'indice_ap', 'liqidez'. (The concept is case-insensitive, but must be one of these options)",
|
||||
"enum": [
|
||||
"roe",
|
||||
"roa",
|
||||
"rote",
|
||||
"min",
|
||||
"min_ajustado",
|
||||
"indice_eficiencia",
|
||||
"costo_riesgo",
|
||||
"indice_morocidad",
|
||||
"indice_covertura",
|
||||
"taza_impuestos",
|
||||
"eficiencia_op",
|
||||
"indice_ap",
|
||||
"liqidez"
|
||||
]
|
||||
},
|
||||
"year": {
|
||||
"type": "integer",
|
||||
"description": "The year of the data"
|
||||
},
|
||||
"quarter": {
|
||||
"type": "integer",
|
||||
"description": "The quarter or trimester of the year (1-4)"
|
||||
}
|
||||
},
|
||||
"required": ["year", "quarter"]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "function",
|
||||
"function": {
|
||||
"name": "getInformationalData",
|
||||
"description": "",
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"question": {
|
||||
"type": "string",
|
||||
"description": "Assist the user in finding resources, key concepts, and relevant keywords. This function searches for data and concepts—such as 'Banorte's Dividend,' 'Banorte Financial Group Structure,' 'banking information in Mexico,' 'quarterly report location,' and more—within the vector database."
|
||||
}
|
||||
},
|
||||
"required": ["question"]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user