Skip to content

Commit

Permalink
Fix llama-index test after upgrading deps (#1192)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsmilkov authored Feb 23, 2024
1 parent 521fb51 commit 33dcf03
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lilac/sources/github_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def scrub_github_token(self, github_token: str) -> str:
@override
def setup(self) -> None:
try:
from llama_index import download_loader
from llama_index.core.readers import download_loader

except ImportError:
raise ImportError(
Expand Down
2 changes: 1 addition & 1 deletion lilac/sources/llama_index_docs_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from typing import TYPE_CHECKING, Any, ClassVar, Iterable, Iterator, Optional

if TYPE_CHECKING:
from llama_index import Document
from llama_index.core.schema import Document

from typing_extensions import override

Expand Down
2 changes: 1 addition & 1 deletion lilac/sources/llama_index_docs_source_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Tests for the Llama Index Docs source."""

from llama_index import Document
from llama_index.core.schema import Document

from ..schema import schema
from ..source import SourceSchema
Expand Down

0 comments on commit 33dcf03

Please sign in to comment.