AI Skill Hub 强烈推荐:OpenAI嵌入 是一款优质的AI工具。AI 综合评分 8.0 分,在同类工具中表现稳健。如果你正在寻找可靠的AI工具解决方案,这是一个值得深入了解的选择。
OpenAI嵌入 是一款基于 Python 开发的开源工具,专注于 embeddings、data-science、python 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
OpenAI嵌入 是一款基于 Python 开发的开源工具,专注于 embeddings、data-science、python 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:pip 安装(推荐)
pip install openai-embeddings
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install openai-embeddings
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/FullStackWithLawrence/openai-embeddings
cd openai-embeddings
pip install -e .
# 验证安装
python -c "import openai_embeddings; print('安装成功')"
# 命令行使用
openai-embeddings --help
# 基本用法
openai-embeddings input_file -o output_file
# Python 代码中调用
import openai_embeddings
# 示例
result = openai_embeddings.process("input")
print(result)
# openai-embeddings 配置文件示例(config.yml) app: name: "openai-embeddings" debug: false log_level: "INFO" # 运行时指定配置文件 openai-embeddings --config config.yml # 或通过环境变量配置 export OPENAI_EMBEDDINGS_API_KEY="your-key" export OPENAI_EMBEDDINGS_OUTPUT_DIR="./output"
- git. pre-installed on Linux and macOS - make. pre-installed on Linux and macOS. - OpenAI platform API key. _If you're new to OpenAI API then see How to Get an OpenAI API Key - Pinecone API key. A vector database for storing embedding results. - Python 3.12: for creating virtual environment. Also used by pre-commit linters and code formatters. - NodeJS: used with NPM for configuring/testing Semantic Release.
```console git clone https://github.com/FullStackWithLawrence/openai-embeddings.git cd openai-embeddings make init
git clone https://github.com/lpm0073/automatic-models.git
cd automatic-models
make init
make activate
🤖 Retrieval Augmented Generation and Hybrid Search 🤖
A Hybrid Search and Augmented Generation prompting solution using Python OpenAI API Embeddings persisted to a Pinecone vector database index and managed by LangChain. Demonstrates the following:
- System Prompting. How do use the system prompt to modify LLM text completion behavior. - Templates. How to create templates in order keep your prompts DRY. - LangChain. How to setup a project using LangChain as an alternative to vendor specific LLM PyPi packages. - PDF Loader. a command-line pdf loader program that extracts text, vectorizes, and loads into a Pinecone dot product vector database that is dimensioned to match OpenAI embeddings. - Pinecone. How to create, load, and query a Pinecone vector database. - Retrieval Augmented Generation (RAG). A chatGPT prompt based on a hybrid search retriever that locates relevant documents from the vector database and includes these in OpenAI prompts.
Secondarily, I also use this repo for demonstrating how to setup Pydantic to manage your project settings and how to safely work with sensitive credentials data inside your project.
```console
python3 -m models.examples.prompt "you are a helpful assistant" "What analytics and accounting courses does Wharton offer?"
python3 -m models.examples.prompt "You are a student advisor at University of Pennsylvania. You provide concise answers of 100 words or less." "What analytics and accounting courses does Wharton offer?"
python3 -m models.examples.online_courses "analytics and accounting"
python3 -m models.examples.certification_programs "analytics and accounting"
python3 -m models.examples.load "/path/to/your/pdf/documents" python3 -m models.examples.rag "What analytics and accounting courses does Wharton offer?" ```
Set these as environment variables on the command line, or in a .env file that should be located in the root of the repo.
```console
OPENAI_API_ORGANIZATION=ADD-ME-PLEASE OPENAI_API_KEY=ADD-ME-PLEASE OPENAI_CHAT_MODEL_NAME=gpt-4 OPENAI_PROMPT_MODEL_NAME=gpt-4 OPENAI_CHAT_TEMPERATURE=0.0 OPENAI_CHAT_MAX_RETRIES=3
PINECONE_API_KEY=ADD-ME-PLEASE PINECONE_ENVIRONMENT=gcp-starter PINECONE_INDEX_NAME=openai-embeddings PINECONE_VECTORSTORE_TEXT_KEY=lc_id PINECONE_METRIC=dotproduct PINECONE_DIMENSIONS=1536
DEBUG_MODE=False ```
开源AI工具,混合搜索和检索增强生成能力较强
该工具使用 AGPL-3.0 协议,商用场景请仔细阅读协议条款,必要时咨询法律意见。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
⚠️ AGPL 3.0 — 最严格的 Copyleft,网络服务端使用也需开源,SaaS 使用受限。
总体来看,OpenAI嵌入 是一款质量优秀的AI工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | openai-embeddings |
| Topics | embeddingsdata-sciencepythongithub-actions |
| GitHub | https://github.com/FullStackWithLawrence/openai-embeddings |
| License | AGPL-3.0 |
| 语言 | Python |
收录时间:2026-07-04 · 更新时间:2026-07-04 · License:AGPL-3.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。