> ## 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

> Integreer Novita AI moeiteloos met LlamaIndex om intelligente, datagedreven applicaties te bouwen.

Ontworpen voor optimale indexering en retrieval, blinkt LlamaIndex uit in het leveren van hoge efficiëntie voor applicaties die nauwkeurige en snelle gegevenstoegang vereisen. Door te combineren [Novita AI](https://novita.ai/) met LlamaIndex ontgrendel je belangrijke voordelen zoals superieure nauwkeurigheid bij het ophalen van gegevens, ongeëvenaarde schaalbaarheid en kosteneffectieve prestaties.

Deze gids laat je zien hoe je LlamaIndex met Novita AI kunt gebruiken op basis van de OpenAl APl, en biedt slimmere, schaalbare en zeer efficiënte AI-oplossingen die innovatie stimuleren en uitzonderlijke resultaten opleveren voor ontwikkelaars.

## **Hoe de Novita AI API te integreren met LlamaIndex**

Stap 1: Bezoek [Modelbibliotheek](https://novita.ai/llm-api) op Novita AI en selecteer een model dat je interesseert.

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

Stap 2: Navigeer naar de demopagina van het gekozen model en klik op de `Code` knop aan de rechterkant.

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

Stap 3: Kopieer de naam van het model en noteer deze.

<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="Kopieer de modelnaam en noteer deze" width="3841" height="1905" data-path="images/step3-copy-model-name.png" />
</Frame>

Stap 4: [Inloggen ](https://novita.ai/user/login)naar het Novita-platform.

<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>

Stap 5: Nadat je bent ingelogd, ga je naar het platform’s [instellingenpagina](https://novita.ai/settings).

<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="Open de pagina met platforminstellingen nadat u bent ingelogd" width="3841" height="1905" data-path="images/step5-platform-settings-page.png" />
</Frame>

Stap 6: Maak een nieuwe [API-sleutel](https://novita.ai/settings/key-management) en kopieer het voor service-authenticatie.

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

Stap 7: Installeren `llama_index` en gerelateerde Python-bibliotheken door uit te voeren:

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

Stap 8: Schrijf Python-code en stel de modelnaam en API-sleutel in als parameters in de NovitaAI-klasse.

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

Stap 9: Voer de code uit om de uitvoer te krijgen.

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

Raadpleeg voor meer voorbeelden de documentatie: [llama\_index/llama-index-integrations/llms/llama-index-llms-novita op main · run-llama/llama\_index](https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/llms/llama-index-llms-novita).
