Find answers from the community

8
888
Offline, last seen 3 months ago
Joined September 25, 2024
8
888
·

Faiss

Hey - how do i apply metadata filter to queries when using FAISS as my index's vector square?

for context, here's how i typically query (uses raw query embeddings)
1 comment
L
which vectorstores via llama-index support metadata filter on retrieval?

this doesn't seem to work: https://gpt-index.readthedocs.io/en/latest/examples/vector_stores/DocArrayHnswIndexDemo.html
1 comment
L
8
888
·

Node

whats the easiest way to convert a dict -> node? TextNode(node_dict) doesn't seem to work..

my nodedict = ` { {'id': 'acc2e3b8-54ec-4c99-a53f-a775b2d1c348', 'embedding': None, 'extra_info': {'input': 'hello', 'system_note': ''}, 'excluded_embed_metadata_keys': ['input', 'ideal', 'system_note', 'example_number', 'output', 'tasks', 'destinations', 'responses'], 'excluded_llm_metadata_keys': ['ideal', 'system_note', 'example_number', 'output', 'tasks', 'destinations', 'responses'], 'hash': '099bcbea79bed957b17408251ea5667f497148faa1e238045f9ae6cc896e9070', 'text': 'hello, 'start_char_idx': 0, 'end_char_idx': 25, 'text_template': '{metadata_str}\n\n{content}', 'metadata_template': '{key}: {value}', 'metadata_seperator': '\n'}
} `
2 comments
L