[PR #4] [MERGED] Add API #66

Closed
opened 2026-02-15 18:17:14 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/auto-evaluator/pull/4
Author: @rlancemartin
Created: 4/18/2023
Status: Merged
Merged: 4/18/2023
Merged by: @rlancemartin

Base: mainHead: api


📝 Commits (1)

📊 Changes

6 files changed (+509 additions, -0 deletions)

View changed files

api/README.md (+39 -0)
api/evaluator_app.py (+338 -0)
api/logging.conf (+27 -0)
api/railway.json (+11 -0)
api/requirements.txt (+19 -0)
api/text_utils.py (+75 -0)

📄 Description

Add FastAPI API here for repo consolidation.

(Code moved from https://github.com/PineappleExpress808/auto-evaluator-api.)

Can deploy (to Railway) from here.

Local testing works -

Local server -

uvicorn evaluator_app:app

Curl -

curl -X POST -F "files=@Docs/0333_text.txt" -F "num_eval_questions=1" -F "chunk_chars=1000" -F "overlap=100" -F "split_method=RecursiveTextSplitter" -F "retriver_type=Llama-Index" -F "embeddings=OpenAI" -F "model_version=gpt-3.5-turbo" -F "grade_prompt=Fast" -F "num_neighbors=3" http://localhost:8000/evaluator-stream

Output as expected.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/auto-evaluator/pull/4 **Author:** [@rlancemartin](https://github.com/rlancemartin) **Created:** 4/18/2023 **Status:** ✅ Merged **Merged:** 4/18/2023 **Merged by:** [@rlancemartin](https://github.com/rlancemartin) **Base:** `main` ← **Head:** `api` --- ### 📝 Commits (1) - [`09352bf`](https://github.com/langchain-ai/auto-evaluator/commit/09352bf881f109467c371b785ad09bb6295a1706) Add api ### 📊 Changes **6 files changed** (+509 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `api/README.md` (+39 -0) ➕ `api/evaluator_app.py` (+338 -0) ➕ `api/logging.conf` (+27 -0) ➕ `api/railway.json` (+11 -0) ➕ `api/requirements.txt` (+19 -0) ➕ `api/text_utils.py` (+75 -0) </details> ### 📄 Description Add FastAPI API here for repo consolidation. (Code moved from https://github.com/PineappleExpress808/auto-evaluator-api.) Can deploy (to Railway) from here. Local testing works - Local server - ``` uvicorn evaluator_app:app ``` Curl - ``` curl -X POST -F "files=@Docs/0333_text.txt" -F "num_eval_questions=1" -F "chunk_chars=1000" -F "overlap=100" -F "split_method=RecursiveTextSplitter" -F "retriver_type=Llama-Index" -F "embeddings=OpenAI" -F "model_version=gpt-3.5-turbo" -F "grade_prompt=Fast" -F "num_neighbors=3" http://localhost:8000/evaluator-stream ``` Output as expected. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 18:17:14 -05:00
yindo closed this issue 2026-02-15 18:17:14 -05:00
yindo changed title from [PR #4] [MERGED] Add API to [PR #4] [MERGED] Add API 2026-06-05 17:14:21 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/auto-evaluator#66