meltanolabs / map-gpt-embeddings Goto Github PK
View Code? Open in Web Editor NEWA Singer tap to build vectorized datasets from any knowledge base,using natural language processing (NLP).
License: MIT License
A Singer tap to build vectorized datasets from any knowledge base,using natural language processing (NLP).
License: MIT License
Today the mapper will split the record text into sub records https://github.com/MeltanoLabs/map-gpt-embeddings/blob/2155fec353868ef7b6334a8c88a3895130440272/map_gpt_embeddings/mappers.py#L129C13-L129C25 if its too big to be embedded on its own. This means a record that enters the mapper with ID = 1 could exit the mapper as 2 records both with ID = 1. I suspect this has downstream implications if the target is updating based on ID, the second record would win and the first would be clobbered.
We could keep the split record index and append it to the key_properties so that the output is a composite PK. For example:
Initially was map-openai-doc-splitter
and map-openai-embeddings
. The second of these two can perform both functions, so it probably makes sense to just combine them and have a config option to enable/disable the embeddings operations.
Technically, the langchain
module is used for doc splitting, not openai
.
While the embeddings do go through OpenAI library directly, the langchain
libraries also have methods to wrap this process.
Options considered:
map-langchain
map-langchain-transforms
map-langchain-embeddings
map-chatgpt-transforms
map-chatgpt-prep
map-chatgpt-embeddings
map-llm-transforms
map-llm-embeddings
map-llm-document-prep
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.