Get embedding using the common embedding utilities
(text, model="text-embedding-3-small")
| 15 | EMBEDDING_MODEL_LARGE = "text-embedding-3-large" |
| 16 | |
| 17 | async def get_embedding_async(text, model="text-embedding-3-small"): |
| 18 | """Get embedding using the common embedding utilities""" |
| 19 | try: |
| 20 | # Use the embedding wrapper from the repository |
| 21 | return await get_embedding(text, model=model) |
| 22 | except Exception as e: |
| 23 | logger.error(f"Error getting embedding: {e}") |
| 24 | raise |
| 25 | |
| 26 | |
| 27 | def read_file_content(file_path): |
nothing calls this directly
no test coverage detected