(text: str)
| 47 | |
| 48 | |
| 49 | def normalize_for_embedding(text: str) -> str: |
| 50 | if not text: |
| 51 | return "" |
| 52 | |
| 53 | text = RE_EMOJI.sub("", text) |
| 54 | text = RE_WHITESPACE.sub(" ", text) |
| 55 | return text.strip() |
| 56 | |
| 57 | |
| 58 | class BaseVectorStore(ABC): |
no outgoing calls
no test coverage detected