kotaemon/knowledgehub
Nguyen Trung Duc (john) d79b3744cb Simplify the BaseComponent inteface (#64)
This change remove `BaseComponent`'s:

- run_raw
- run_batch_raw
- run_document
- run_batch_document
- is_document
- is_batch

Each component is expected to support multiple types of inputs and a single type of output. Since we want the component to work out-of-the-box with both standardized and customized use cases, supporting multiple types of inputs are expected. At the same time, to reduce the complexity of understanding how to use a component, we restrict a component to only have a single output type.

To accommodate these changes, we also refactor some components to remove their run_raw, run_batch_raw... methods, and to decide the common output interface for those components.

Tests are updated accordingly.

Commit changes:

* Add kwargs to vector store's query
* Simplify the BaseComponent
* Update tests
* Remove support for Python 3.8 and 3.9
* Bump version 0.3.0
* Fix github PR caching still use old environment after bumping version

---------

Co-authored-by: ian <ian@cinnamon.is>
2023-11-13 15:10:18 +07:00
..
base Simplify the BaseComponent inteface (#64) 2023-11-13 15:10:18 +07:00
chatbot Upgrade the declarative pipeline for cleaner interface (#51) 2023-10-24 11:12:22 +07:00
composite Simplify the BaseComponent inteface (#64) 2023-11-13 15:10:18 +07:00
contribs Upgrade the declarative pipeline for cleaner interface (#51) 2023-10-24 11:12:22 +07:00
docstores [AUR-338, AUR-406, AUR-407] Export pipeline to config for PromptUI. Construct PromptUI dynamically based on config. (#16) 2023-09-21 14:27:23 +07:00
documents Upgrade the declarative pipeline for cleaner interface (#51) 2023-10-24 11:12:22 +07:00
embeddings Simplify the BaseComponent inteface (#64) 2023-11-13 15:10:18 +07:00
llms Simplify the BaseComponent inteface (#64) 2023-11-13 15:10:18 +07:00
loaders Add Huggingface embeddings and Cohere embeddings (#63) 2023-11-10 09:38:30 +07:00
parsers Update Base interface of Index/Retrieval pipeline (#36) 2023-10-04 14:27:44 +07:00
pipelines Simplify the BaseComponent inteface (#64) 2023-11-13 15:10:18 +07:00
post_processing Simplify the BaseComponent inteface (#64) 2023-11-13 15:10:18 +07:00
prompt Simplify the BaseComponent inteface (#64) 2023-11-13 15:10:18 +07:00
vectorstores Simplify the BaseComponent inteface (#64) 2023-11-13 15:10:18 +07:00
__init__.py Simplify the BaseComponent inteface (#64) 2023-11-13 15:10:18 +07:00
cli.py Provide ready binary for Mac and Linux to do sharing tunneling (#49) 2023-10-17 17:19:29 +07:00