Find answers from the community

Home
Members
BrightArgo
B
BrightArgo
Offline, last seen 2 days ago
Joined September 25, 2024
I'm using SQLAutoVectorQueryEngine and am curious to know if there is a supported method to return in-line citations with this implementation. CitationQueryEngine seems to be standalone and separate from SQLAutoVectorQueryEngine and unable to be integrated with this module. But I could be wrong. Also, if in-line citation support does not exist for this module, what would be a recommended approach to provide in-line citations with functionality similar to SQLAutoVectorQueryEngine? Break this into separate workflows? Any assistance would be appreciated. Thanks!
2 comments
B
L
I have this very simple code:

vector_store=RedisVectorStore(
schema=custom_schema,
redis_url=f"redis://{REDIS_HOST}:{REDIS_PORT}",

with schema referencing

custom_schema = IndexSchema.from_dict(
{
"index": {
"name": "chevy-colorado",
"prefix": "pdf:chunk",
"key_separator": ":"
},
# customize fields that are indexed
"fields": [
# required fields for llamaindex
{"type": "tag", "name": "id"},
{"type": "tag", "name": "doc_id"},
{"type": "text", "name": "text"},
# custom vector field for cohere embeddings
{
"type": "vector",
"name": "vector",
"attrs": {
"dims": 1024,
"algorithm": "hnsw",
"distance_metric": "cosine",
},
},
],
}
)

simply trying to emulate a written up solution, but when I run the code locally I receive this error:

vector_store=RedisVectorStore(
^^^^^^^^^^^^^^^^^
TypeError: RedisVectorStore.init() missing 1 required positional argument: 'index_name'

Seems like this is a versioning issue, but I can't be sure. Thoughts?
8 comments
B
L
I'm running redis locally on my mac and receiving this error: AttributeError: 'Redis' object has no attribute 'module_list' when I run my pipeline. This seems like something llamaindex is trying to validate but it does not exist where it is searching. Any thoughts on how to remediate?
30 comments
L
k
s
B