mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-09 21:29:11 +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):
|
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:
|
||||||
|
|||||||
@@ -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,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user