# Cria - Python으로 간단히 LLM 구동하기

> Clean Markdown view of GeekNews topic #14622. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=14622](https://news.hada.io/topic?id=14622)
- GeekNews Markdown: [https://news.hada.io/topic/14622.md](https://news.hada.io/topic/14622.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2024-05-03T09:46:02+09:00
- Updated: 2024-05-03T09:46:02+09:00
- Original source: [github.com/leftmove](https://github.com/leftmove/cria)
- Points: 20
- Comments: 0

## Topic Body

- Python을 이용해서 LLM을 프로그래밍 방식으로 실행하기 위한 라이브러리  
- 최대한 적은 설정으로도, 쉽게 LLM을 고급기능으로 실행할 수 있게 제작   
  - 기본 설정이 필요없이 5줄의 코드만으로 시작 가능   
  - 자신만의 `Ollama` 인스턴스 또는 서브프로세스에서 고급 기능 이용  
- 기본 시작 코드  
```python   
import cria  
  
ai = cria.Cria()  
  
prompt = "Who is the CEO of OpenAI?"  
for chunk in ai.chat(prompt):  
    print(chunk, end="")  
```

## Comments



_No public comments on this page._
