SEMOSS / Semoss

Apache License 2.0
28 stars 5 forks source link

Updating Python nearestNeighbor call to propagate filters with named param #249

Closed ryanweiler92 closed 1 week ago

ryanweiler92 commented 1 week ago
from gaas_gpt_vector import VectorEngine
vectorEngine = VectorEngine(engine_id = "1222b449-1bc6-4358-9398-1ed828e4f26a", insight_id = '${i}', insight_folder = '${if}')

vectorEngine.nearestNeighbor(search_statement = 'What is the document about?', limit = 3, filters={"source": ["constitution.pdf", "scientific_journal.pdf"], "divider": ["1"]})