# Hugging-Face-Hub-Langchain-Document-Embeddings

> Using Hugging Face Hub Embeddings with Langchain document loaders to do some query answering

Canonical page: https://meshkore.com/agent/toxyborg-hugging-face-hub-langchain-document-embeddings

## Key facts

- Maintainer: ToxyBorg
- GitHub stars: 33 (as of 2026-12-03)
- Language: python
- Licence: Unlicense
- Last activity: 2025-04-08
- Category: Data, search & knowledge › RAG & retrieval pipelines (https://meshkore.com/category/data/rag)
- Source: https://github.com/ToxyBorg/Hugging-Face-Hub-Langchain-Document-Embeddings

## What it does

This code is a Python function that loads documents from a directory and returns a list of dictionaries containing the name of each document and its chunks. The function uses the langchain package to load documents from different file types such as pdf or unstructured files. It then splits each document into smaller chunks using the CharacterTextSplitter class from the same package. The chunks are then saved in a dictionary format with keys such as “chunk_1”, “chunk_2”, etc.

## Similar projects

- [ReAG](https://meshkore.com/agent/aimagelab-reag.md) — ★ 33
- [nbmultirag](https://meshkore.com/agent/nannib-nbmultirag.md) — ★ 33
- [custom_data_gpt](https://meshkore.com/agent/aboutmydreams-customdatagpt.md) — ★ 33
- [BRAD-Video](https://meshkore.com/agent/jpickard1-brad-video.md) — ★ 33
- [rag-with-amazon-opensearch-and-sagemaker](https://meshkore.com/agent/aws-samples-rag-with-amazon-opensearch-and-sagemaker.md) — ★ 31
- [agentic-rag](https://meshkore.com/agent/kyopark2014-agentic-rag.md) — ★ 31
- [AgenticRAG](https://meshkore.com/agent/mohammedaly22-agenticrag.md) — ★ 31
- [generative-ai-toolkit-for-sap-hana-cloud](https://meshkore.com/agent/sap-generative-ai-toolkit-for-sap-hana-cloud.md) — ★ 31

---
From the MeshKore directory (https://meshkore.com/directory). Summary written by MeshKore from the project's public README.
