using lang chain in python, with a text block that contains urls, gemini returns a 500 internal server error. I use Chroma.from_texts(texts, embeddings, metadatas, persist_directory=self.db_path) to build the database. the embeddings is GoogleGenerativeAIEmbeddings(model=“the model in here”, google_api_key=“my key in here”)
gemini-embedding-001 returns a 500 error where was embedding-001 does not.
the text is something similar to the following:
“”"
Event Title: Level 2 Class
Description: <an outline of the level 2 class and its contents…>
The location is unknown
The registration link is [https://<some] site and link in here>**
The Event Starts on Monday, January 01, 2024 12:00:00 AM
The Event Ends on Thursday, January 01, 2026 12:00:00 AM
“”"
if I remove the URL, gemini is fine. If I put it in the text, gemini returns a 500 error.