You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
610 B

2 weeks ago
from deepsearcher.configuration import Configuration, init_config
from deepsearcher.offline_loading import load_from_local_files
2 weeks ago
from deepsearcher.online_query import query
2 weeks ago
config = Configuration()
2 weeks ago
config.load_config_from_yaml("deepsearcher/config.yaml")
init_config(config = config)
# Load your local data
load_from_local_files(
paths_or_directory="docs",
collection_name="default",
collection_description="a general collection for all documents",
force_rebuild=True, batch_size=16
)
2 weeks ago
# Query
result = query("Write a comprehensive report about Milvus.", max_iter=1) # Your question here