Find answers from the community

Home
Members
Prince Kumar
P
Prince Kumar
Offline, last seen 3 months ago
Joined September 25, 2024
Is anyone knows how to get references of response in llama index.
I tried
response.source_nodes[0]. text
It is not giving the references properly
2 comments
P
W
P
Prince Kumar
·

Hey guys

Hey guys
While doing this
Index=VectorStoreIndex.from_documents(documents)

Pls help me out

Following error I'm getting
SSLCertVerificationError
ConnectError: [SSL: CERTIFICATE_VERIFY_FAILED] certify verify failed: unable to get local issuer certificate( _ssl.c: 992)
ApiConnectionError: connection error.

I have tried other indexes like GPTVectorStoreIndex, SimpleVetorIndex getting same error here also
3 comments
P
L
r
P
Prince Kumar
·

Azure

Hi guys,
I'm unable to create embeddings
Code:-
from langchain.embeddings import AzureopenAIEmbeddins embeddings=AzureOpenAIEmbeddings (deployment="text-embedding-ada-002",
model"text-embedding-ada-002",
openai api base="<OPENAI_API_BASE>",
openai_api_type="azure",
openai_api_key="<OPENAI_API_KEY>"
openai_api_version="2023-07-01-preview")

While creating embeddings
embeddings.embed_query(" this is test query")

I'm getting this error
NotFoundError:
Error code: 404-{'error':{code':'404', 'message': 'Resource not found"}}

I'm using OpenAi=1.6.1
Langchain=0.0.344, since I'm using llama-index that's why I'm using higher version of OpenAi. For OpenAi version 0.28.5 embeddings is working but for higher it isn't. Pls help
4 comments
P
W
P
Prince Kumar
·

OpenAI

Hey guys
Using openai 1.6.1
While doing
Index= VectorStoreIndex.from_documents(documents)

Getting this error
NotFoundError: Error code: 484 ['error': ['code": "404', 'message': 'Resource not found")).

Same error in this also.
index = VectorStoreIndex.from_documents(documents, 11m=11m1, embed_model =embeddings, prompt helper=prompt_helper)
21 comments
P
W
t
P
Prince Kumar
·

Hey guys

Hey guys
I'm getting one error while importing VectorStoreIndex from llama index

ImportError: cannot import name 'BaseLanguage Model' from 'langchain.schema (C:\Users\2637547\AppData\Roaming\Python\Python311\site-packages\langchain\sc hema_init__.py

Can anyone pls tell me which version of llama index, OpenAi and Langchain I should use to resolve it. Or any solution to resolve it.
8 comments
P
W
P
Prince Kumar
·

Hey guys

Hey guys

I'm unable to load VectorStoreIndex

Getting this error
ImportError: cannot import name 'DATA KEY' from 'Ilama_index.constants (C:\Users\2772727\venv\Lib\site-packages\llana_index\constants.py)

I saw constant.py file

It is

Set of constants."""

MAX CHUNK SIZE 3900 MAX CHUNK OVERLAP 200

NUM OUTPUTS 256

INDEX STRUCT KEY "index struct"

DOCSTORE KEY "docatore"

VECTOR STORE CONFIG_DICT KEY "vector_store"

TYPE KEY

type DATA KEY-data

Pls help me out
7 comments
r
L
R
P