> ## Documentation Index
> Fetch the complete documentation index at: https://novita.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# LlamaIndex

> Integra Novita AI con LlamaIndex sin esfuerzo para crear aplicaciones inteligentes impulsadas por datos.

Diseñado para una indexación y recuperación óptimas, LlamaIndex destaca por ofrecer alta eficiencia en aplicaciones que requieren acceso a datos preciso y rápido. Al combinar [Novita AI](https://novita.ai/) con LlamaIndex, desbloquearás beneficios clave como una precisión superior en la recuperación de datos, una escalabilidad inigualable y un rendimiento rentable.

Esta guía te mostrará cómo usar LlamaIndex con Novita AI basado en la API de OpenAl, ofreciendo soluciones de IA más inteligentes, escalables y altamente eficientes que impulsan la innovación y brindan resultados excepcionales para los desarrolladores.

## **Cómo integrar la API de Novita AI con LlamaIndex**

Paso 1: Visita la [Biblioteca de modelos](https://novita.ai/llm-api) en Novita AI y selecciona un modelo de interés.

<Frame>
  <img src="https://mintcdn.com/novitaai/bnRhXPrVKQGiPndx/images/Step1VisitModelLibraryonNovitaAIandselectamodelofinterest.png?fit=max&auto=format&n=bnRhXPrVKQGiPndx&q=85&s=d3db29afa82f298487c3284f24397510" alt="images/Step1VisitModelLibraryonNovitaAIandselectamodelofinterest.png" width="3841" height="1905" data-path="images/Step1VisitModelLibraryonNovitaAIandselectamodelofinterest.png" />
</Frame>

Paso 2: Ve a la página de demostración del modelo elegido y haz clic en el botón `Code` a la derecha.

<Frame>
  <img src="https://mintcdn.com/novitaai/bnRhXPrVKQGiPndx/images/Step2NavigatetothedemopageofthechosenmodelandclicktheCodebuttonontheright.png?fit=max&auto=format&n=bnRhXPrVKQGiPndx&q=85&s=e5ca58627abad4dd217b7ac3abd598e7" alt="images/Step2NavigatetothedemopageofthechosenmodelandclicktheCodebuttonontheright.png" width="3841" height="1905" data-path="images/Step2NavigatetothedemopageofthechosenmodelandclicktheCodebuttonontheright.png" />
</Frame>

Paso 3: Copia el nombre del modelo y anótalo.

<Frame>
  <img src="https://mintcdn.com/novitaai/huCNU0PmcVLk7qAw/images/step3-copy-model-name.png?fit=max&auto=format&n=huCNU0PmcVLk7qAw&q=85&s=41c0c4bd42ab8510f95c14e159454239" alt="Copia el nombre del modelo y anótalo" width="3841" height="1905" data-path="images/step3-copy-model-name.png" />
</Frame>

Paso 4: [Inicia sesión ](https://novita.ai/user/login)en la plataforma de Novita.

<Frame>
  <img src="https://mintcdn.com/novitaai/bnRhXPrVKQGiPndx/images/Step4LogintotheNovitaplatform.png?fit=max&auto=format&n=bnRhXPrVKQGiPndx&q=85&s=d274e15bfd1b4c639512ec19a7ddf6ed" alt="images/Step4LogintotheNovitaplatform.png" width="3841" height="1905" data-path="images/Step4LogintotheNovitaplatform.png" />
</Frame>

Paso 5: Después de iniciar sesión, ve a la [página de configuración](https://novita.ai/settings) de la plataforma.

<Frame>
  <img src="https://mintcdn.com/novitaai/huCNU0PmcVLk7qAw/images/step5-platform-settings-page.png?fit=max&auto=format&n=huCNU0PmcVLk7qAw&q=85&s=15ea1eed07d2667b57334d65a160f8c4" alt="Abre la página de configuración de la plataforma después de iniciar sesión" width="3841" height="1905" data-path="images/step5-platform-settings-page.png" />
</Frame>

Paso 6: Crea una nueva [clave de API](https://novita.ai/settings/key-management) y cópiala para la autenticación del servicio.

<Frame>
  <img src="https://mintcdn.com/novitaai/bnRhXPrVKQGiPndx/images/Step6CreateanewAPIkeyandcopyitforserviceauthentication.png?fit=max&auto=format&n=bnRhXPrVKQGiPndx&q=85&s=07b03a5c86e922736118a779e34041ff" alt="images/Step6CreateanewAPIkeyandcopyitforserviceauthentication.png" width="2057" height="617" data-path="images/Step6CreateanewAPIkeyandcopyitforserviceauthentication.png" />
</Frame>

Paso 7: Instala `llama_index` y las bibliotecas de Python relacionadas ejecutando:

<Frame>
  <img src="https://mintcdn.com/novitaai/bnRhXPrVKQGiPndx/images/Step7Installllama_indexandrelatedPythonlibrariesbyrunning.png?fit=max&auto=format&n=bnRhXPrVKQGiPndx&q=85&s=fd802a1818ff357dfcede0fe966e61a9" alt="images/Step7Installllama_indexandrelatedPythonlibrariesbyrunning.png" width="2224" height="682" data-path="images/Step7Installllama_indexandrelatedPythonlibrariesbyrunning.png" />
</Frame>

Paso 8: Escribe código Python y configura el nombre del modelo y la clave de API como parámetros en la clase NovitaAI.

<Frame>
  <img src="https://mintcdn.com/novitaai/bnRhXPrVKQGiPndx/images/Step8WritePythoncodeandsetthemodelnameandAPIkeyasparametersintheNovitaAIclass.png?fit=max&auto=format&n=bnRhXPrVKQGiPndx&q=85&s=dc8c9b21bd91d18469faab2d238fa9ce" alt="images/Step8WritePythoncodeandsetthemodelnameandAPIkeyasparametersintheNovitaAIclass.png" width="1291" height="437" data-path="images/Step8WritePythoncodeandsetthemodelnameandAPIkeyasparametersintheNovitaAIclass.png" />
</Frame>

Paso 9: Ejecuta el código para obtener la salida.

<Frame>
  <img src="https://mintcdn.com/novitaai/bnRhXPrVKQGiPndx/images/Step9Runthecodetogettheoutput.png?fit=max&auto=format&n=bnRhXPrVKQGiPndx&q=85&s=4f3bf4015516d4acfc6c079b8a7f8c65" alt="images/Step9Runthecodetogettheoutput.png" width="2089" height="41" data-path="images/Step9Runthecodetogettheoutput.png" />
</Frame>

Para obtener más ejemplos, consulta la documentación: [llama\_index/llama-index-integrations/llms/llama-index-llms-novita en main · run-llama/llama\_index](https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/llms/llama-index-llms-novita).
