Comments (5)
https://databend.rs/doc/sql-functions/ai-functions/
Vector store support is great, but generating embedding requires the AI_EMBEDDING_VECTOR function, which is too coupled.
Only use OpenAI service.
from langchain-swift.
Thanks for mentioning.
Only use OpenAI service.
Databend currently only provides support for OpenAI, but there is potential for adding other LLM models in the future.
Vector store support is great, but generating embedding requires the AI_EMBEDDING_VECTOR function, which is too coupled.
Still confused with too coupled
(Also we talked in email), here is some explains:
AI_EMBEDDING_VECTOR
is a function that returns only a vector (of ARRAY data type). This means you can store the resulting array in the Databend ARRAY data type or any other persistent ARRAY storage.
Query:select ai_embedding_vector('hi');
Result: [-0.03512698,-0.020624293,-0.015343423,-0.039803572,... <4096 items>]
Please inform me of your preferred version for decoupling
.
from langchain-swift.
If embedding and storage are separate, then I understand it wrong.
let embeddings = OpenAIEmbeddings()
let s = Supabase(embeddings: embeddings)
My expectation is that embedding and storage arrays are optional.
from langchain-swift.
Yes, they are separate, you can only utilize the AI_EMBEDDING_VECTOR
function to get the vector array and save it to other stores.
from langchain-swift.
Thank you for your answer.
from langchain-swift.
Related Issues (20)
- Ollama support HOT 4
- Gemini support
- LMStudio API support
- Is there a plan to replace OpenAIKit? HOT 15
- Not set cache when llm return nil.
- Get Location Tool can't access GPS location HOT 9
- generative-ai-swift and Gemini.swift fail HOT 4
- Issue with Async-http-client package for WatchOS app HOT 9
- Bilibil jct and session move to env.txt
- Add Notion Loader
- Add RSS Loader
- TMdb Loader
- Pabbly Connect Support HOT 1
- calibre loader
- There are security issues with using env.txt. HOT 1
- Add swift-format and swift-lint
- Local document HOT 1
- Support for CoreML models HOT 1
- Integrate https://github.com/eastriverlee/LLM.swift
- Make Ollama parameters public.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from langchain-swift.