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

> Integrieren Sie Novita AI mühelos mit LlamaIndex, um intelligente, datengestützte Anwendungen zu erstellen.

LlamaIndex ist für optimale Indexierung und Abfrage konzipiert und überzeugt durch hohe Effizienz bei Anwendungen, die präzisen und schnellen Datenzugriff erfordern. Durch die Kombination von [Novita AI](https://novita.ai/) mit LlamaIndex erschließen Sie zentrale Vorteile wie überlegene Genauigkeit beim Datenabruf, unübertroffene Skalierbarkeit und kosteneffiziente Performance.

Dieser Leitfaden zeigt Ihnen, wie Sie LlamaIndex mit Novita AI auf Basis der OpenAl APl verwenden, um intelligentere, skalierbare und äußerst effiziente KI-Lösungen zu entwickeln, die Innovation vorantreiben und Entwicklern außergewöhnliche Ergebnisse liefern.

## **So integrieren Sie die Novita AI API mit LlamaIndex**

Schritt 1: Besuchen Sie die [Modellbibliothek](https://novita.ai/llm-api) auf Novita AI und wählen Sie ein Modell aus, das Sie interessiert.

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

Schritt 2: Navigieren Sie zur Demoseite des ausgewählten Modells und klicken Sie rechts auf die Schaltfläche `Code`.

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

Schritt 3: Kopieren Sie den Namen des Modells und notieren Sie ihn.

<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="Kopieren Sie den Modellnamen und notieren Sie ihn" width="3841" height="1905" data-path="images/step3-copy-model-name.png" />
</Frame>

Schritt 4: [Melden Sie sich ](https://novita.ai/user/login)bei der Novita-Plattform an.

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

Schritt 5: Gehen Sie nach der Anmeldung zur [Einstellungsseite](https://novita.ai/settings) der Plattform.

<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="Öffnen Sie nach der Anmeldung die Einstellungsseite der Plattform" width="3841" height="1905" data-path="images/step5-platform-settings-page.png" />
</Frame>

Schritt 6: Erstellen Sie einen neuen [API-Schlüssel](https://novita.ai/settings/key-management) und kopieren Sie ihn für die Service-Authentifizierung.

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

Schritt 7: Installieren Sie `llama_index` und die zugehörigen Python-Bibliotheken, indem Sie Folgendes ausführen:

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

Schritt 8: Schreiben Sie Python-Code und legen Sie den Modellnamen und den API-Schlüssel als Parameter in der NovitaAI-Klasse fest.

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

Schritt 9: Führen Sie den Code aus, um die Ausgabe zu erhalten.

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

Weitere Beispiele finden Sie in der Dokumentation: [llama\_index/llama-index-integrations/llms/llama-index-llms-novita at main · run-llama/llama\_index](https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/llms/llama-index-llms-novita).
