mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 13:18:18 +00:00
Fix indexing Github, Notion content by linking embeddings model on init
This commit is contained in:
@@ -20,6 +20,7 @@ magika = Magika()
|
||||
|
||||
class GithubToEntries(TextToEntries):
|
||||
def __init__(self, config: GithubConfig):
|
||||
super().__init__(config)
|
||||
raw_repos = config.githubrepoconfig.all()
|
||||
repos = []
|
||||
for repo in raw_repos:
|
||||
|
||||
@@ -47,6 +47,7 @@ class NotionBlockType(Enum):
|
||||
|
||||
class NotionToEntries(TextToEntries):
|
||||
def __init__(self, config: NotionConfig):
|
||||
super().__init__(config)
|
||||
self.config = NotionContentConfig(
|
||||
token=config.token,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user