Learning resourcesReviewed · Mem0

Smart Travel Assistant — Mem0

Smart Travel Assistant is a Python tutorial for developers building travel chatbots that remember preferences, but its examples leave compatibility and persistent storage setup unresolved. It combines Mem0 OSS, OpenAI models and Qdrant to retrieve relevant memories before answering questions.

Researched 23 Nov 2026

In short.

Smart Travel Assistant is a Python guide for developers adding remembered preferences to travel chatbots, but its examples need compatibility review before use. The newer example combines Mem0 OSS with gpt-5-mini, text-embedding-3-large and Qdrant. It demonstrates memory retrieval and prompt construction without live travel information or booking integrations. Model references conflict across the prose and code, costs are unknown, and nothing was executed.

Researched and written by an AI model and checked by a second AI model. How it works

Covers the complete selected page at [https://docs.mem0.ai/cookbooks/companions/travel-assistant], including both code tabs, setup, usage, surrounding notices and page metadata. Original capture: selected-page.html, acquired 2026-11-23T17:04:16.049Z, source revision sha256:7274f8bf623c008daea4c1e50eaba6043e7da02619bbcc4a33e72acef49e8002. Linked documentation, repository contents, pricing and licence pages are excluded. Nothing was executed; compatibility, persistent recall, answer quality, performance and production behavior are unassessed.

The overview

Identity

Smart Travel Assistant is a tutorial in Mem0’s Companion Playbooks at [https://docs.mem0.ai/cookbooks/companions/travel-assistant]. It supplies Python code for a command-line assistant using the Mem0 OSS Memory class and the OpenAI client.

The resource is an implementation guide. Its delivered interface is a terminal question-and-answer loop; the page does not supply a finished traveler application.

Assessment

The guide is useful for understanding where stored preferences enter an AI response: search existing memories, include relevant text in the question prompt, generate an answer and submit the new question to memory.

It is a starting point for a prototype. The page does not establish reliable recall across trips, correct SDK compatibility or a complete storage deployment. The code was not run, and answer quality, latency and reliability are not assessed.

Users

The guide fits developers who can edit Python, install packages and configure an API credential. Beginners can follow a small class with separate methods for asking questions, searching memories and listing memories.

Experienced developers can use it to examine memory configuration and differences between the two API examples. Anyone seeking a ready-to-use itinerary planner would still need an application interface, deployment and travel data integrations.

Capabilities

The code searches stored memories using the current question and a user_id filter, includes returned memory text in the answer prompt, and submits the question to Memory.add after generating an answer. It can also list that user’s memories.

Travel personalization is the intended application, but the assistant instruction is generic. The example includes no flight or hotel search, availability checks, current prices, maps, booking operations or structured itinerary validation.

Using it

Requirements

The documented dependencies are Python packages openai and mem0ai, installed with pip. The example requires an OPENAI_API_KEY and access to the configured OpenAI models.

The newer code configures Qdrant as its vector store. The page does not specify a Python version, exact package versions, hardware requirements, a Qdrant connection address or a persistent storage location. Storage defaults and compatibility with any particular installed release are unknown.

Mechanism

The newer tab initializes Memory.from_config with gpt-5-mini as its memory LLM, text-embedding-3-large as its embedder, and a Qdrant collection named test with 3,072 embedding dimensions. Reply generation uses a separate OpenAI responses.create call with gpt-5-mini.

For each question, search_memories extracts memory strings from the search response’s results array. The code joins those strings into a prompt with the current question, generates an answer, extracts response.output[0].content[0].text and then submits the question to memory.

The newer tab initializes a messages list but never uses it in generation. Each reply therefore receives the current prompt and retrieved memories without the earlier assistant answers being passed through that list.

Setup

The page’s installation command is pip install openai mem0ai. It then instructs readers to configure their OpenAI key, instantiate PersonalTravelAssistant and use main() for interactive questions.

Both examples assign a placeholder key to OPENAI_API_KEY inside the script, which would overwrite a previously configured environment value. An adaptation should load the real credential externally and remove that placeholder assignment.

The newer example also requires resolving Qdrant storage configuration and matching the code to installed SDK versions. The page provides no worked storage setup or successful execution output.

Example

The supplied usage example fixes user_id to traveler_123 and creates one PersonalTravelAssistant instance. Its loop reads a question, prints the generated answer, lists stored memories and continues until the reader enters q or exit.

The page supplies no sample travel conversation, generated itinerary or saved-memory output. The exact information retained and its successful reuse across later trips are unknown.

Assessment & evidence

Limitations

Answer extraction assumes that the first response output item contains a first content item with text. Memory helpers also assume particular result structures. The example shows no validation, exception handling or recovery when these assumptions fail.

The fixed user identifier and caller-supplied memory filters do not demonstrate authenticated separation between travelers. No memory correction, deletion, consent or retention interface is implemented.

Reply prompts send the current question and retrieved memories to OpenAI, and the memory configuration also uses OpenAI models. The page does not establish data retention terms or a fully local deployment.

Reasoning

The strongest teaching feature is the visible connection between memory search and prompt construction. Readers can identify how previous user information could influence an answer without navigating a larger application.

Memory.add receives the user’s question rather than the generated answer or complete conversation. Saving a proposed itinerary is therefore not demonstrated. The page’s statement that the assistant learns and improves describes an intended benefit of remembered context; it supplies no model-training procedure or measured improvement.

Alternatives

The page supplies two implementation variants. The Before v1.1 tab uses Memory() and Chat Completions with an accumulating message history. The After v1.1 tab uses explicit memory configuration and the Responses API with a newly constructed prompt for each question.

These variants differ in conversation handling as well as initialization. Their labels do not establish compatibility with a specific installed release. The page provides no comparison with competing memory libraries or travel assistants.

Evidence

The evidence consists of the complete Mem0 documentation page, including its explanatory text, installation command, both Python tabs, usage instructions and modification metadata.

It establishes the published code structure and intended behavior. It contains no execution results, worked travel transcript, memory accuracy measurements, latency benchmarks or deployment evidence. Those outcomes remain unassessed.

Access & freshness

Costs

The page states no prices, quotas, free allowances or per-question estimate. Running this configuration involves OpenAI generation and embeddings alongside memory processing and storage; applicable charges and total operating costs are unknown.

The max_tokens value of 2000 appears inside Mem0’s LLM configuration. It is not passed to the separate reply-generation call and does not establish an overall spending limit.

Rights

The page identifies the integration as Mem0 OSS and links to [https://github.com/mem0ai/mem0]. It contains no licence text or explicit grant governing reuse or redistribution of the tutorial code.

The tutorial’s reuse terms, dependency licences and rights applicable to generated output are unknown from this page. The linked repository’s contents are outside the supplied evidence.

Freshness

Page metadata reports modification on 2026-08-14T11:22:24.561Z. The supplied capture is dated 2026-11-23T17:04:16.049Z; this does not establish the compatibility of the examples on that date.

The overview names GPT-4, both executable model arguments name gpt-5-mini, and a comment in the older tab names gpt-4.1-nano. These inconsistent references, together with unpinned dependencies, leave current SDK and model-parameter compatibility unknown.

Actions

Before adapting the example, establish matching package versions and verify the memory filter arguments, result structures, model parameters and response extraction. Configure durable storage and check whether a fresh session can recover preferences for the same user.

For a shared application, replace the fixed identifier with authenticated user identity and add failure handling and memory correction or deletion controls. Add current travel data where answers depend on prices or availability, and establish provider costs and data terms before using real traveler information.

Evidence for this report

selected-page.htmlselected · checked 2026-11-23