docs, py 3.14
Some checks failed
Build and Push Agent Docker Image / build (push) Failing after 1m9s
Build and Push Web Docker Image / build (push) Successful in 3m30s

This commit is contained in:
2025-12-12 17:42:40 +01:00
parent fd2f6fea14
commit feabb681e8
8 changed files with 54 additions and 240 deletions

View File

@@ -304,17 +304,6 @@ def embeddings_main():
conn.execute('UPDATE embeddings SET embedding = %s::vector WHERE id = %s;', (embedding, row['id']))
conn.commit()
# try:
# ai_ocr = ocr(bucket, key)
# text = ai_ocr.content[0].text
#
# embedding=embed(text, 'search_document')
# conn.execute('UPDATE embeddings SET content = %s, embedding = %s::vector WHERE bucket = %s AND key = %s;', (text, embedding, bucket, key))
# conn.commit()
# except Exception as e:
# logger.error(f"An unexpected error occurred: {e}")
# return True
### embeddings
def embed(text, input_type):
max_retries = 3