Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
5c44d8c
chore: added infra script
teetangh Oct 15, 2025
21c7257
fix: updated the scripts to reflect real tools
teetangh Oct 16, 2025
b89754e
chore: updated order
teetangh Oct 16, 2025
e01a843
chore: updated notebooks with the management api script
teetangh Oct 17, 2025
f46c9e5
feat: add couchbase-infrastructure as submodule
teetangh Oct 19, 2025
825c8e0
fix: improve error handling and response formatting in hotel search a…
teetangh Oct 21, 2025
f292b15
feat: enhance hotel search agent functionality and prompt clarity
teetangh Oct 21, 2025
ef589b8
feat: add detailed logging and strict filtering rules for hotel searc…
teetangh Oct 21, 2025
922b254
feat: enhance landmark search agent with improved iteration limits an…
teetangh Oct 21, 2025
f84d7f5
feat: improve landmark search agent by clearing cached state between …
teetangh Oct 21, 2025
9401f03
feat: enhance flight search agent with improved artifact handling and…
teetangh Oct 21, 2025
2929932
chore: update .gitignore and enhance flight search agent queries with…
teetangh Oct 22, 2025
10a0343
Merge branch 'main' into feat/add-infra-script
teetangh Oct 22, 2025
c8de77f
used llm tool input parsing + pydantic input validatin
teetangh Oct 22, 2025
ef3a4fd
fix: resolve merge conflicts - keep simplified prompt with perfect ev…
teetangh Oct 22, 2025
09478de
fix: updated the notebook as well
teetangh Oct 22, 2025
bcc3a0b
fix: update embedding model to nvidia/llama-3.2-nv-embedqa-1b-v2 in n…
teetangh Oct 22, 2025
a13fda8
Merge branch 'main' into feat/add-infra-script
teetangh Oct 22, 2025
c561fc1
chore: updated default model
teetangh Oct 22, 2025
9481c06
fix: resolve authentication and environment configuration issues
teetangh Oct 22, 2025
2e5f542
updated the setup script
teetangh Oct 22, 2025
b959ef1
chore: update couchbase-infrastructure submodule
teetangh Oct 22, 2025
d0143e7
feat: migrate to Developer Pro cluster with Analytics support
teetangh Oct 23, 2025
a0fccc0
refactor: consolidate Colab notebook as main tutorial
teetangh Oct 23, 2025
072d7f8
chore: update couchbase-infrastructure submodule
teetangh Oct 23, 2025
b78a8b5
sync: update ipynb from json with Developer Pro changes
teetangh Oct 23, 2025
56a79f6
chore: sync submodule with analytics privilege fix
teetangh Oct 23, 2025
be2921e
chore: sync submodule with cluster-wide access fix
teetangh Oct 23, 2025
3de8eb0
feat: add .agentcignore file download to notebook
teetangh Oct 23, 2025
1715fa4
fix: use lazy connection in all agent tools to prevent indexing timeouts
teetangh Oct 23, 2025
4c9f386
fix: remove undefined cluster variable checks from tools
teetangh Oct 23, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions common.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@

import os
print(os.getcwd())
----

# this is just one we need to get the all the tools,prompts and agentcatalog_index.json in the relatives places as per the project. below is just one example
!mkdir prompts && cd prompts && \
wget https://raw.githubusercontent.com/couchbase-examples/agent-catalog-quickstart/refs/heads/main/notebooks/flight_search_agent_langraph/prompts/flight_search_assistant.yaml

----
# come to base directory

# Depends on each toml requirements. heres the hotel example:
%pip install -q \
"pydantic>=2.0.0,<3.0.0" \
"python-dotenv>=1.0.0,<2.0.0" \
"pandas>=2.0.0,<3.0.0" \
"tqdm>=4.64.0,<5.0.0" \
"langchain-couchbase>=0.2.5,<0.3.0" \
"langchain-openai>=0.3.13,<0.4.0" \
"langchain-nvidia-ai-endpoints>=0.3.0,<0.4.0" \
"arize>=5.0.0" \
"arize-otel>=0.7.0,<1.0.0" \
"arize-phoenix[evals]>=11.0.0" \
"openinference-instrumentation-openai>=0.1.18,<0.2.0" \
"openinference-instrumentation-langchain>=0.1.29,<0.2.0"
------

!pip install -q https://github.com/couchbaselabs/agent-catalog/releases/download/v0.2.5a2/agentc_core-0.2.5a2-py3-none-any.whl
!pip install -q https://github.com/couchbaselabs/agent-catalog/releases/download/v0.2.5a2/agentc_cli-0.2.5a2-py3-none-any.whl
!pip install -q https://github.com/couchbaselabs/agent-catalog/releases/download/v0.2.5a2/agentc-0.2.5a2-py3-none-any.whl
!pip install -q https://github.com/couchbaselabs/agent-catalog/releases/download/v0.2.5a2/agentc_langchain-0.2.5a2-py3-none-any.whl
!pip install -q https://github.com/couchbaselabs/agent-catalog/releases/download/v0.2.5a2/agentc_langgraph-0.2.5a2-py3-none-any.whl

# just for show
# !pip install -q /content/agentc_core-*.whl
# !pip install -q /content/agentc_cli-*.whl
# !pip install -q /content/agentc-*.whl
# !pip install -q /content/agentc_langchain-*.whl
# !pip install -q /content/agentc_langgraph-*.whl
------


!git init

------

!git add .
!git config --global user.email "[email protected]"
!git config --global user.name "Kaustav Ghosh"
!git commit -m "initial commit"

------

!agentc init

-----

!agentc index .

-----

!agentc publish

-----
2 changes: 1 addition & 1 deletion couchbase-infrastructure
55 changes: 29 additions & 26 deletions notebooks/flight_search_agent_langraph/data/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@
8. VX flight from JFK to LAX using 320""",

# Query 2: Flight booking LAX to JFK for tomorrow, 2 passengers, business class
# Note: Departure date and Booking ID are dynamically generated based on current date
"""Flight Booking Confirmed!

Booking ID: FL09251563CACD
Booking ID: [Dynamically Generated]
Route: LAX → JFK
Departure Date: 2025-09-25
Departure Date: [Tomorrow's Date - Dynamically Calculated]
Passengers: 2
Class: business
Total Price: $1500.00
Expand All @@ -43,11 +44,12 @@
Thank you for choosing our airline!""",

# Query 3: Flight booking JFK to MIA for next week
# Note: Departure date and Booking ID are dynamically generated based on current date
"""Flight Booking Confirmed!

Booking ID: FL10014E7B9C2A
Booking ID: [Dynamically Generated]
Route: JFK → MIA
Departure Date: 2025-10-01
Departure Date: [Next Week's Date - Dynamically Calculated]
Passengers: 1
Class: economy
Total Price: $250.00
Expand All @@ -60,45 +62,46 @@
Thank you for choosing our airline!""",

# Query 4: Show current flight bookings
# Note: Booking IDs and dates are dynamically generated
"""Your Current Bookings (2 found):

Booking 1:
Booking ID: FL09251563CACD
Booking ID: [Dynamically Generated]
Route: LAX → JFK
Date: 2025-09-25
Date: [Tomorrow's Date - Dynamically Calculated]
Passengers: 2
Class: business
Total: $1500.00
Status: confirmed
Booked: 2025-09-24
Status: Confirmed
Booked: [Current Date]

Booking 2:
Booking ID: FL10014E7B9C2A
Booking ID: [Dynamically Generated]
Route: JFK → MIA
Date: 2025-10-01
Date: [Next Week's Date - Dynamically Calculated]
Passengers: 1
Class: economy
Total: $250.00
Status: confirmed
Booked: 2025-09-24""",
Status: Confirmed
Booked: [Current Date]""",

# Query 5: SpiceJet service quality reviews
# Note: Vector search results are non-deterministic and may return different reviews each time
# from the database of 2210+ airline reviews. All results are valid SpiceJet reviews.
"""Found 5 relevant airline reviews for 'SpiceJet service quality':

Review 1:
Airline: SpiceJet. Title: "Great travel experience". Review: ✅ Trip Verified | Marvelous courteous crew who took good care of all passengers. They should be rewarded for the patience shown towards the unruly ones. Great travel experience.. Rating: 10.0/10. Reviewer: Ranjita Pandey. Date: 18th April 2024. Recommended: yes

Review 2:
Airline: SpiceJet. Title: "good service by the crew". Review: ✅ Trip Verified | I have had good service by the crew. It was amazing, the crew was very enthusiastic and warm welcome. It was one of the best services in my experience.. Rating: 10.0/10. Reviewer: K Mansour. Date: 10th August 2024. Recommended: yes

Review 3:
Airline: SpiceJet. Title: "delayed both ways by many hours". Review: Not Verified | Flight was delayed both ways by many hours. Poor service for the same price as other airlines like IndiGo. No wifi or other amenities to compensate for terrible service.. Rating: 2.0/10. Reviewer: Somil Jain Jain. Date: 20th May 2022. Recommended: no

Review 4:
Airline: SpiceJet. Title: "Excellent service". Review: ✅ Trip Verified | Excellent service by the ground staff courteous beyond expectations always willing to help in the real sense and not lipservice i will recommend to all whom I know. Rating: 10.0/10. Reviewer: Ramanathan Ramchandra. Date: 1st November 2023. Recommended: yes

Review 5:
Airline: SpiceJet. Title: "hospitality service given". Review: ✅ Trip Verified | Seats are comparable if compare to other budget airlines. Cabin crews are friendly and hospitality service given with smiles. Very happy and enjoy experience.. Rating: 8.0/10. Reviewer: A Bameen. Date: 20th March 2022. Recommended: yes""",
[Reviews include customer feedback about SpiceJet's service quality, covering aspects such as:
- Crew service and hospitality
- Flight delays and punctuality
- In-flight amenities and comfort
- Ground staff service
- Overall travel experience
- Ratings typically range from 2/10 to 10/10
- Mix of verified and unverified reviews
- Reviews from various dates and routes
- Both positive recommendations and criticisms]

Note: Specific reviews vary due to vector similarity search across 2210+ airline reviews.""",
]

# Create dictionary for backward compatibility
Expand Down
Loading