Fix indexing Github, Notion content by linking embeddings model on init

This commit is contained in:
Debanjum
2025-08-29 13:44:15 -07:00
parent 81c651b5b2
commit 00f0d23224
2 changed files with 2 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ magika = Magika()
class GithubToEntries(TextToEntries): class GithubToEntries(TextToEntries):
def __init__(self, config: GithubConfig): def __init__(self, config: GithubConfig):
super().__init__(config)
raw_repos = config.githubrepoconfig.all() raw_repos = config.githubrepoconfig.all()
repos = [] repos = []
for repo in raw_repos: for repo in raw_repos:

View File

@@ -47,6 +47,7 @@ class NotionBlockType(Enum):
class NotionToEntries(TextToEntries): class NotionToEntries(TextToEntries):
def __init__(self, config: NotionConfig): def __init__(self, config: NotionConfig):
super().__init__(config)
self.config = NotionContentConfig( self.config = NotionContentConfig(
token=config.token, token=config.token,
) )