1001 Freelance Projects
Latest Projects from
Freelance Marketplaces
View Project
View this project in detail
(Note: you will be redirected to external marketplace)
Project title:
AI Engineer Needed to Optimize LangChain + AWS Bedrock App
Posted by:
External project from PeoplePerHour
Started:
03-Nov-2025 17:02 GMT
Description:
We have an AI agent application built with Python, LangChain, and AWS Bedrock that currently takes around 40 seconds per LLM response. We need to reduce latency dramatically for investor demos, ideally under 10 seconds. The backend is Flask (Python 3.10) on AWS Lambda with a React frontend and Bedrock Claude models.

You’ll be responsible for targeted performance fixes focused on measurable speed gains. The work includes optimizing Bedrock configuration, implementing real token-by-token streaming, adding Redis caching to replace S3-based message storage, and validating performance improvements with before-and-after latency metrics.

Estimated 6 hours of work.

Tasks

Optimize Bedrock Model Configuration: update bedrock_config.py to disable thinking mode, remove unnecessary budget_tokens, and lower temperature from 1.0 to around 0.2–0.3 for deterministic, faster responses. Confirm that the configuration change reduces token generation delay and verbosity.

Implement Real Token Streaming (Backend): replace agent.invoke with a streaming method using Bedrock ConverseStream or LangChain’s stream API. Ensure partial tokens are sent to the client in real time and test time-to-first-token performance.

Enable Live Streaming Display (Frontend): update the React frontend to handle streamed events progressively so users see text as it generates. Confirm the UI starts displaying output within 2–3 seconds of sending input.

Add Redis Caching for Chat Session Memory: replace S3-based chat history with Redis for in-memory storage. Update the chat_history_manager logic, validate cache persistence, and confirm message load time is near-instant.

Measure and Document Latency Improvements: record baseline timing (total response and time-to-first-token), re-measure after optimizations, and summarize the before/after results. Confirm at least a 4–5× improvement in perceived speed. All optimizations must preserve the exact response content and formatting from the LLM - only response speed may change.

Deliverables
• Updated, tested backend and frontend code (GitHub commit or zip)
• Before/after latency test results (text or JSON summary)
• One short summary of what was changed and verified

Questions - please answer all in proposal

Describe your experience optimizing latency in LangChain or Bedrock-based applications.

Have you implemented real token streaming (not chunked post-processing) before?

What is your preferred setup for Redis caching in a Python/AWS environment?

Are you comfortable modifying both Python backend and React frontend code?

Can you start immediately and complete project within 48 hours of getting contract offer?
Project ID:
3456506
Project category:
Project budget:
View this project in detail
(Note: you will be redirected to external marketplace)
Last Projects / Browse Projects
  Project Started
Excel Macro for Sales Report
Category: Data Analysis, Excel, Excel Macros, Excel VBA, Microsoft Office, VB.NET, Visual Basic, Visual Basic For Apps
Budget: $10 - $30 USD
04 Nov 2025 05:04 GMT
KDP Children’s Book Formatting
Category: Adobe InDesign, Amazon Kindle, Book Design, Content Management System (CMS), EBook Design, EBooks, Graphic Design, Print Design, Project Management, Visual Design
Budget: $10 - $30 AUD
04 Nov 2025 05:03 GMT
Trust Fund System Development -- 2
Category: Agile Development, API Development, Backend Development, Data Analytics, Database Management, Project Management, Software Development, User Experience Research, User Interface / IA, Web Development
Budget: $250 - $750 USD
04 Nov 2025 05:03 GMT
Video Editor for Next-Gen Astrology App
Category: Adobe Premiere Pro, After Effects, Animation, Content Creation, Social Media Marketing, Video Ads, Video Editing, Video Production
Budget: €30 - €250 EUR
04 Nov 2025 05:02 GMT
Retail E-Commerce Site Setup
Category: CSS, ECommerce, HTML, Payment Gateway Integration, PHP, SEO, Web Development, Web Design
Budget: ₹1500 - ₹12500 INR
04 Nov 2025 05:01 GMT
Nastaliq Farsi Tattoo Design
Category: Adobe Illustrator, Calligraphy, Digital Art, Graphic Design, Illustration, Logo Design, Photoshop, Procreate, Tattoo Design, Vector Design
Budget: $30 - $250 CAD
04 Nov 2025 05:00 GMT
Omnissa Intelligence Developer Training
Category: API Development, Project Management, Software Development, Technical Documentation, Technical Writing, Training Development
Budget: min ₹2500 INR
04 Nov 2025 05:00 GMT
Gutenberg WordPress Theme Ready made
Category: CSS, Google Analytics, HTML, PHP, SEO, Web Design, Web Development, WordPress, WordPress Design
Budget: $20 - $100 USD
04 Nov 2025 05:00 GMT
Excel XLOOKUP Implementation Help
Category: Data Management, Data Processing, Excel Macros, Excel VBA, Statistics, Visual Basic
Budget: $15 - $25 CAD
04 Nov 2025 05:00 GMT
Thai Document Translation Needed
Category: English (US) Translator, Thai Translator, Translation
Budget: $3 - $10 SGD
04 Nov 2025 05:00 GMT
Figma Mobile App UI Design -- 2
Category: Figma, Graphic Design, IOS Development, IPhone, Mobile App Development, Prototyping, UI / User Interface, User Interface / IA
Budget: ₹1500 - ₹12500 INR
04 Nov 2025 05:00 GMT
Whole House Lutron Scene Programming
Category: Automation, C, Programming, C++, Documentation, Home Automation, Lighting Design, Mobile App Development, Unity 3D
Budget: £10 - £15 GBP
04 Nov 2025 04:59 GMT
Upgrade Keamanan Aplikasi Desktop
Category: .NET, C#, Programming, C++, Cryptography, Java, Penetration Testing, Security, Software Architecture
Budget: $20 - $30 SGD
04 Nov 2025 04:58 GMT
Modern CPA Website Build
Category: Graphic Design, HTML, PHP, SEO, Web Design, Web Development, WordPress
Budget: $3000 - $5000 CAD
04 Nov 2025 04:56 GMT
Advanced Anime Streaming Website Development
Category: API Integration, Content Management System (CMS), HTML, MySQL, PHP, User Interface / IA, Web Development, Web Design
Budget: ₹600 - ₹5000 INR
04 Nov 2025 04:55 GMT
Browse All Projects
Projects by Skills ...
android
ajax
asp
aspnet
cms
cpp
csharp
css
delphi
design
drupal
excel
facebook
flash
html
java
javascript
joomla
iphone
mysql
photoshop
php
python
ruby
seo
sql
sysadm
translate
typing
twitter
vbnet
xml
wordpress
writing
New!
Проекты на русском
(Projects in Russian)

Copyright © 2005-2024
1001 Freelance Projects