Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add LanceDB custom destination example code (#1323)
* Add LanceDB custom destination example code Signed-off-by: Marcel Coetzee <[email protected]> * Format Signed-off-by: Marcel Coetzee <[email protected]> * Remove Postgres credentials from example.secrets.toml Signed-off-by: Marcel Coetzee <[email protected]> * Format Signed-off-by: Marcel Coetzee <[email protected]> * Add typing Signed-off-by: Marcel Coetzee <[email protected]> * Refactor code documentation and add type ignore comments Signed-off-by: Marcel Coetzee <[email protected]> * Ignore checks Signed-off-by: Marcel Coetzee <[email protected]> * wrap in main if statement Signed-off-by: Marcel Coetzee <[email protected]> * Add lancedb to install dependencies in test_doc_snippets workflow Signed-off-by: Marcel Coetzee <[email protected]> * poetry Signed-off-by: Marcel Coetzee <[email protected]> * Update deps Signed-off-by: Marcel Coetzee <[email protected]> * Update LanceDB version and replace Sentence-Transformers with OpenAIEmbeddings Signed-off-by: Marcel Coetzee <[email protected]> * Poetry lock Signed-off-by: Marcel Coetzee <[email protected]> * Format Signed-off-by: Marcel Coetzee <[email protected]> * Update versions Signed-off-by: Marcel Coetzee <[email protected]> * Replace OpenAI with Cohere in LanceDB custom destination example Signed-off-by: Marcel Coetzee <[email protected]> * Format Signed-off-by: Marcel Coetzee <[email protected]> * Add error handling to custom destination lanceDB example Signed-off-by: Marcel Coetzee <[email protected]> * Lift config to secrets/config Signed-off-by: Marcel Coetzee <[email protected]> * Ignore example lancedb local dir Signed-off-by: Marcel Coetzee <[email protected]> * Why was this uncommented Signed-off-by: Marcel Coetzee <[email protected]> * Remove unnecessary lock Signed-off-by: Marcel Coetzee <[email protected]> * Cleanup Signed-off-by: Marcel Coetzee <[email protected]> * Remove print statements from custom_destination_lancedb.py Signed-off-by: Marcel Coetzee <[email protected]> * Print info Signed-off-by: Marcel Coetzee <[email protected]> * Print info Signed-off-by: Marcel Coetzee <[email protected]> * Use rest_client Signed-off-by: Marcel Coetzee <[email protected]> * noqa Signed-off-by: Marcel Coetzee <[email protected]> * Remove `cohere` dependency and add `embeddings` extra to `lancedb` Signed-off-by: Marcel Coetzee <[email protected]> * changing secrets path for cohere to pass docs tests * fixes lock file * moves get lancedb path to run within the test * fix dependencies * fix linting * fix lancedb deps * update lock file * change source name * moved client_id to secrets * switch lancedb example to openai and small fixes * small fixes * add openai to docs deps * fix grammar gpt typing --------- Signed-off-by: Marcel Coetzee <[email protected]> Co-authored-by: Marcin Rudolf <[email protected]> Co-authored-by: rahuljo <[email protected]> Co-authored-by: Dave <[email protected]> Co-authored-by: Alena <[email protected]>
- Loading branch information