change import to avoid circular imports
This commit is contained in:
parent
1b8ac854dd
commit
b8927704e3
2 changed files with 2 additions and 7 deletions
|
|
@ -1,6 +1,4 @@
|
|||
import asyncio
|
||||
|
||||
import cognee
|
||||
from cognee.modules.chunking.TextChunker import TextChunker
|
||||
from textual.app import ComposeResult
|
||||
from textual.widgets import Input, Label, Static, Checkbox, RadioSet, RadioButton
|
||||
|
|
@ -138,7 +136,7 @@ class CognifyTUIScreen(BaseTUIScreen):
|
|||
|
||||
# Prepare datasets parameter
|
||||
datasets = [dataset_name] if dataset_name else None
|
||||
|
||||
import cognee
|
||||
await cognee.cognify(
|
||||
datasets=datasets,
|
||||
chunker=chunker_class,
|
||||
|
|
|
|||
|
|
@ -1,12 +1,9 @@
|
|||
import asyncio
|
||||
|
||||
import cognee
|
||||
from cognee.modules.search.types import SearchType
|
||||
from textual.app import ComposeResult
|
||||
from textual.widgets import Input, Label, Static, Select
|
||||
from textual.containers import Container, Vertical, ScrollableContainer
|
||||
from textual.binding import Binding
|
||||
|
||||
from cognee.cli.tui.base_screen import BaseTUIScreen
|
||||
|
||||
|
||||
|
|
@ -141,7 +138,7 @@ class SearchTUIScreen(BaseTUIScreen):
|
|||
try:
|
||||
# Convert string to SearchType enum
|
||||
search_type = SearchType[query_type]
|
||||
|
||||
import cognee
|
||||
# Perform search
|
||||
results = await cognee.search(
|
||||
query_text=query_text,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue