Create a MemoryItem with an embedding of the specified dimension.
(item_id: str, dim: int)
| 23 | |
| 24 | |
| 25 | def _make_memory_item(item_id: str, dim: int): |
| 26 | """Create a MemoryItem with an embedding of the specified dimension.""" |
| 27 | return MemoryItem( |
| 28 | id=item_id, |
| 29 | content_summary=f"content for {item_id}", |
| 30 | metadata={}, |
| 31 | embedding=[float(i) for i in range(dim)], |
| 32 | ) |
| 33 | |
| 34 | |
| 35 | class TestSimpleMemoryRetrieveMixedDimensions: |
no test coverage detected