LLM AI Agent toy project - #1 기본 LLM 테스트

2026. 5. 29. 01:28·LLM AI Agent

목표

  • Single-turn 테스트
  • Multi-turn 테스트
  • Embedding vector 테스트

코드

코드 링크: https://github.com/ybjeon/ai-agent-toyproject/blob/main/test_llm.py

  • $ python test_llm.py

결과

Single-turn 테스트

=== Single Turn Test ===
>>>>>>> User: Hello! Introduce yourself briefly.
Assistant:  Hello there! I am a large language model trained by Mistral AI, designed to assist with a wide range of tasks and provide engaging conversation. I don't have personal experiences or emotions, but I'm here to help you navigate text-based tasks and make your interactions more enjoyable.

Multi-turn 테스트

=== Multi Turn Chat ===
Chatbot started (Server: http://localhost:11434) | Exit: 'quit' or 'exit'
>>>>>>> User: My name is Alice
Assistant:  Hello Alice, it's nice to meet you! How can I assist you today? Let me know if you have any questions or need help with something.
>>>>>>> User: What is my name?
Assistant:  Your name is Alice, according to the initial interaction we had. If you have a different name that you would like to use when interacting with me, just let me know and I'll update it for future conversations.

history에 채팅 기록을 계속 append 했기 때문에, 과거 입력이 다시 들어가서 Alice임을 안다.

Embedding vector 테스트

=== Embedding Vector Test ===
  The weather is really nice today: 0.4604
  Do you know about cats?: 0.6775
  Do you know about dogs?: 0.9181
  Dogs are animals with high loyalty: 0.6603
  Python is a programming language: 0.5940
  Cats have an independent personality: 0.4756
Query: Tell me about dogs
Closest: Do you know about dogs?

*중요 포인트: nomic-embed-text과 같이 embedding용 모델을 써야함

'LLM AI Agent' 카테고리의 다른 글

LLM 출력에서 자주 보이는 <think> 태그  (0) 2026.05.31
LLM AI Agent toy project - #2 Tool call  (0) 2026.05.29
LLM AI Agent toy project - #3 MCP Server 예제 (python FastMCP)  (1) 2026.05.28
'LLM AI Agent' 카테고리의 다른 글
  • LLM 출력에서 자주 보이는 <think> 태그
  • LLM AI Agent toy project - #2 Tool call
  • LLM AI Agent toy project - #3 MCP Server 예제 (python FastMCP)
ybjeon.today
ybjeon.today
#Security #AI #LLM #일상 #공부 #연구, 프로필: https://ybjeon.today
  • ybjeon.today
    ybjeon's today
    ybjeon.today
  • 전체
    오늘
    어제
  • 링크

    • Github
    • Homepage
  • 블로그 메뉴

    • 전체 보기
    • Security
    • LLM AI Agent
    • AI Agent Security
    • Development
    • 방명록
  • 태그

    review
    Security
    NEWS
    llm
    coding
    ToDo
    ai
    Agent
  • 인기 글

    • 분류 전체보기 (16) N
      • Dev (4) N
      • Security (2)
      • AI Agent Security (5) N
      • LLM AI Agent (4)
      • Tech News (1) N
  • 공지사항

  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.6
ybjeon.today
LLM AI Agent toy project - #1 기본 LLM 테스트
상단으로

티스토리툴바