Questions tagged [llama-index]

Ask Question

The tag has no usage guidance.

162 questions
0 votes 0 answers 217 views

Information Retrival LLama-Index

I am building a Name Entity Recognition system using llama-index and chatgpt api , i have build a template with chatgpt but i need to convert to llama-index template , What is procedure and how to ... Aadhil Imam's user avatar Aadhil Imam
  • 19
0 votes 2 answers 422 views

How to add system instructions when using chainlit x LlamaIndex with StorageContext?

try: # rebuild storage context storage_context = StorageContext.from_defaults(persist_dir="./storage") # load index index = load_index_from_storage(storage_context) except: ... chaha0s's user avatar chaha0s
  • 118
0 votes 1 answer 963 views

How to perform llama-index query when metadata are included to the documents

When adding metadata via every method listed here, the query does not return the correct node. Without metadata everything works fine. adding document.metadata = {'filename': '<doc_file_name>', '... pualien's user avatar pualien
  • 148
0 votes 1 answer 1k views

use llama-index with open source LLM hosted locally

I'm using the llama-index code below to create an index object from a saved text corpus. I'm then loading the saved index object and querying it to produce a response. I'm using an openai apikey so ... user3476463's user avatar user3476463
  • 4,073
0 votes 1 answer 415 views

Llamaindex OpenAIEmbedding AttributeError: OpenAIEmbedding has no attribute 'embed_documents'

print('loading dependencies') from pathlib import Path from llama_index import download_loader from llama_index import VectorStoreIndex, ServiceContext, SimpleDirectoryReader from llama_index import ... BigDawg007's user avatar BigDawg007
  • 65
1 vote 0 answers 163 views

Is there other way to set the scheme in the table_schema_objs for the Index in Llama-Index

Using LLAMAINDEX I want to query my SQL Server 2014 database but I'm having this problem: SQLALCHEMY is taking the dbo scheme... raise exc.NoSuchTableError(f"{owner}.{tablename}") sqlalchemy.... lauther27's user avatar lauther27
  • 11
1 vote 0 answers 57 views

get finish_reason in llama_index

how can i get the finish_reason of the OpenAI response with llama_index? this is an example of my code: query_engine = index.as_query_engine() response = query_engine.query("what is this ... Ire00's user avatar Ire00
  • 121
0 votes 1 answer 727 views

ValidationError when instantiating SimpleNodeParser class from llama index

Taking straight from the docs ... from llama_index.node_parser import SimpleNodeParser from llama_index import SimpleDirectoryReader # load the blogs in using the reader docs = SimpleDirectoryReader('... superhero's user avatar superhero
  • 195
0 votes 1 answer 423 views

import SimpleDirectoryReader from llama-index

I have a conda virtual python 3.10.12 environment named LLM. I've created it on my ubuntu 18.04 LTS server. I've pip installed llama-index 0.6.9 into the virtual environment because llama-index wasn'... user3476463's user avatar user3476463
  • 4,073
0 votes 0 answers 208 views

How to add fulltext search to llamaindex

I am making chatbot that is capable of discussing movies with langchain and llamaindex. I am following this guide. I wish llamaindex performs not only search with vector knn, but also adds some ... Nick Zorander's user avatar Nick Zorander
  • 181
0 votes 1 answer 441 views

How to add source doc title to each chunk of document in llamaindex

If I understand correctly how llamaindex works, it splits each long document to several smaller chunks, and then passes them as context part in LLM prompt. I am following this guide I am trying to ... Nick Zorander's user avatar Nick Zorander
  • 181
1 vote 2 answers 1k views

llama-index: How to Extract `context_str` Used in LlamaIndex for a Given Response?

I'm working with LlamaIndex, and I need to extract the context_str that was used in a query before it was sent to the LLM (Language Model). Here's the relevant code: index = VectorStoreIndex.... Yousif Abdalla's user avatar Yousif Abdalla
  • 632
43 votes 3 answers 17k views

Differences between Langchain & LlamaIndex

I'm currently working on developing a chatbot powered by a Large Language Model (LLM), and I want it to provide responses based on my own documents. I understand that using a fine-tuned model on my ... Yousif Abdalla's user avatar Yousif Abdalla
  • 632
-1 votes 1 answer 242 views

ChatGPT API Custom-trained AI Chatbot answering "None" to Python Query

I'm connecting to my first chatbot. Based on the process outlined here: I created the code he suggested to get ChatGPT to ... Geoff L's user avatar Geoff L
  • 765
0 votes 0 answers 164 views

how to read nested mongoDB atrributes in llama-index

am trying to access and read document from mongoDB, query_dict = { "details.description": {"$exists": True} } field_names = ["details.description"] reader = ... Exorcismus's user avatar Exorcismus
  • 2,352

15 30 50 per page1234511

You Might Also Like