Method
__init__
(self, project_path: str, db_name: str = '.sa', platform: str = 'OpenAI', api_key: str = None, embedding_model: str = "text-embedding-ada-002")
Source from the content-addressed store, hash-verified
| 6 | |
| 7 | class CodeMemory(Memory): |
| 8 | def __init__(self, project_path: str, db_name: str = '.sa', platform: str = 'OpenAI', api_key: str = None, embedding_model: str = "text-embedding-ada-002"): |
| 9 | super().__init__(project_path, db_name, platform, api_key, embedding_model) |
| 10 | self.collection_name = 'code_memory' |
| 11 | |
| 12 | def add_code_files(self, directory: str, exclude_prefix: List[str] = ["workplace_"]): |
| 13 | """ |
Tested by
no test coverage detected