Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Provides German-language workflows for retrieval-augmented generation covering embeddings, vector databases and chunking strategies.
77% 91%+14 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 17 of 22 without it.
3 of 3 safety checks passed
Not used yet
Workflows für Retrieval-Augmented Generation, Embeddings, Vector-DBs, Chunking-Strategien.
def fixed_chunks(text: str, chunk_size: int = 512, overlap: int = 64) -> list[str]:
chunks = []
start = 0
while start < len(text):
end = start + chunk_size
chunks.append(text[start:end])
start += chunk_size - overlap
return chunks
from langchain.text_splitter import RecursiveCharacterTextSplitter
splitter = RecursiveCharacterTextSplitter(
chunk_size=1000,
chunk_overlap=200,
separators=["\n## ", "\n### ", "\n\n", "\n", ". ", " ", ""],
)
chunks = splitter.split_text(text)
# Mit Metadaten
docs = splitter.create_documents(texts=[text], metadatas=[{"source": "file.md", "page": 1}])
import httpx
resp = httpx.post(
"http://localhost:20128/v1/embeddings",
Next to this one in the catalogue, plus more from the same author.