Find answers from the community

b
bcwong
Offline, last seen 3 months ago
Joined September 25, 2024
b
bcwong
·

Py client

hi , what is the license of llamaindex-py-client, where can i see it, thanks
1 comment
L
@kapa.ai in ElasticsearchStore#async_add, why we do async_bulk add two times: async with self.client as client:
await async_bulk(client, requests, chunk_size=self.batch_size, refresh=True)
try:
success, failed = await async_bulk(
client, requests, stats_only=True, refresh=True
)
logger.debug(
f"Added {success} and failed to add {failed} texts to index"
)

logger.debug(f"added texts {ids} to index")
return return_ids
except BulkIndexError as e:
logger.error(f"Error adding texts: {e}")
firstError = e.errors[0].get("index", {}).get("error", {})
logger.error(f"First error reason: {firstError.get('reason')}")
raise
5 comments
L
k