jms0522 / Medical-project

โœ… ์˜๋ฃŒ ๋ฐ์ดํ„ฐ๋ฅผ ํ™œ์šฉํ•œ ์ฑ—๋ด‡๊ณผ ๋‹ค์–‘ํ•œ ํŒŒ์ดํ”„๋ผ์ธ์„ ์ œ์ž‘ํ•ฉ๋‹ˆ๋‹ค.
5 stars 4 forks source link

๐Ÿง‘๐Ÿปโ€๐Ÿ’ป Web #64

Closed jms0522 closed 8 months ago

jms0522 commented 8 months ago

๋ฏผ์„๋‹˜์€ web ์ž‘์—… ํ•˜์‹ค ๋•Œ ๊ธฐ๋Šฅ๋ณ„ ๋ฒ„์ „๋ณ„ ๋ธŒ๋žœ์น˜ ์ƒ์„ฑํ•ด์„œ ํ•ด์ฃผ์„ธ์š”

ex) drrc_login_ver1

**ex) commit message: "type: fix title: ๋ณ€๊ฒฝ ์‚ฌํ•ญ ์š”์•ฝ"

design

preview

minseok1994 commented 8 months ago

image next.js๋กœ chatbot์ œ์ž‘ํ•œ ์†Œ์Šค์ฝ”๋“œ๋ฅผ ํ™œ์šฉํ•˜์—ฌ ๊ตฌ์ถ•ํ•ด๋ณผ ์˜ˆ์ •. ์ž˜ ๋˜๋ฉด api ์ˆ˜์ •ํ•˜๊ณ , html์ˆ˜์ •ํ•˜์—ฌ ์™„์„ฑ. ์ž˜ ์•ˆ๋˜๋ฉด ๊ธฐ์กด๋Œ€๋กœ ์žฅ๊ณ  + ๋ฆฌ์•กํŠธ๋กœ ์ „ํ™˜

jms0522 commented 8 months ago
image

next.js๋กœ chatbot์ œ์ž‘ํ•œ ์†Œ์Šค์ฝ”๋“œ๋ฅผ ํ™œ์šฉํ•˜์—ฌ ๊ตฌ์ถ•ํ•ด๋ณผ ์˜ˆ์ •. ์ž˜ ๋˜๋ฉด api ์ˆ˜์ •ํ•˜๊ณ , html์ˆ˜์ •ํ•˜์—ฌ ์™„์„ฑ. ์ž˜ ์•ˆ๋˜๋ฉด ๊ธฐ์กด๋Œ€๋กœ ์žฅ๊ณ  + ๋ฆฌ์•กํŠธ๋กœ ์ „ํ™˜

jms0522 commented 8 months ago

์ œ๋Œ€๋กœ ๋œ ๋ฐ์ดํ„ฐ๋กœ ์ œ์ž‘ํ•œ chroma๊ฐ€ ์•„๋‹Œ, RAG model chatbot model test

แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2024-02-28 16 54 40

minseok1994 commented 8 months ago

์ œ๋Œ€๋กœ ๋œ ๋ฐ์ดํ„ฐ๋กœ ์ œ์ž‘ํ•œ chroma๊ฐ€ ์•„๋‹Œ, RAG model chatbot model test

image

raw data: ์„œ์šธ๋Œ€ํ•™๊ต๋ณ‘์› ์˜ํ•™์ •๋ณด columns = ['๋ณ‘๋ช…', '์ •์˜', '์›์ธ', '์ฆ์ƒ'] text_splitter = CharacterTextSplitter(chunk_size=600, chunk_overlap=20) embedding_function = SentenceTransformerEmbeddings(model_name="all-MiniLM-L6-v2") chroma_retriever = chroma_vectorstore.as_retriever(search_kwargs={"k": 5}) bm25_retriever.k = 5 ensemble_retriever = EnsembleRetriever( retrievers=[bm25_retriever, chroma_retriever], weights=[0.7, 0.3]) prompt = hub.pull("rlm/rag-prompt") llm = ChatOpenAI(model_name="gpt-3.5-turbo", temperature=0)

minseok1994 commented 8 months ago

postgresql๊ณผ ์žฅ๊ณ  ์—ฐ๊ฒฐ(psycopg2 ๋ชจ๋“ˆ ์‚ฌ์šฉ)

์‚ฌ์šฉ์ž ์ธํ„ฐ๋ž™์…˜ ๋กœ๊น… ์‹œ์Šคํ…œ ๊ตฌ์ถ•

์ฑ—๋ด‡ ์„œ๋น„์Šค ๋ฐ์ดํ„ฐ ์ €์žฅ ๋กœ์ง ๊ตฌํ˜„

image

RabbitMQ, Celery๋ฅผ ํ†ตํ•œ ๋ฉ”์‹œ์ง€ ํ์ž‰ ์‹œ์Šคํ…œ ๊ตฌํ˜„

RabbitMQ, Celery์˜ ์—ญํ• 

image

RabbitMQ, Celery์˜ ๊ตฌ์กฐ

image

RabbitMQ ์„œ๋ฒ„ ์‹คํ–‰(postgreSQL๋„ ํ•จ๊ป˜ ์‹คํ–‰ ์ค‘)

image

Celery์˜ task. ๋น„๋™๊ธฐ์ ์œผ๋กœ ๋ฐฐ์น˜์ž‘์—… ์ฒ˜๋ฆฌ

image

์ƒ๋Ÿฌ๋ฆฌ ๋™์ž‘ ํ™”๋ฉด

image

minseok1994 commented 8 months ago

๋กœ๊ทธ์ธ, ๋กœ๊ทธ์•„์›ƒ ๊ธฐ๋Šฅ

๋กœ๊ทธ์ธ ์‹œ, ์‚ฌ์šฉ์ž์˜ ๋Œ€ํ™”๋‚ด์—ญ์„ ๋ถˆ๋Ÿฌ์™€ ํ™”๋ฉด์— ์ถœ๋ ฅํ•˜๋Š” ๊ธฐ๋Šฅ ๊ตฌํ˜„

image

minseok1994 commented 8 months ago

๋ณด์•ˆ ์˜ค๋ฅ˜ ์ˆ˜์ •

ํ‘ธ์‹œํ•˜์ž๋งˆ์ž openai, github์—์„œ ์œ ์ถœ์— ๋Œ€ํ•œ ๋ฉ”์ผ์ด ์˜ด

์ด๋ฅผ ๊ฐœ์„ ํ•˜๊ธฐ ์œ„ํ•ด dotenv ๋ชจ๋“ˆ์„ ํ™œ์šฉํ•ด .env๋กœ api key๋ฅผ ๊ด€๋ฆฌํ•˜๋„๋กํ•จ image

jms0522 commented 8 months ago

0304 ์ „์ฒ˜๋ฆฌ ํ›„ ํ…Œ์ŠคํŠธ

แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2024-03-04 17 52 38 แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2024-03-04 17 54 52
jms0522 commented 8 months ago

chunk size = 1000 ์™€ over lap = 50 , ์ปฌ๋Ÿผ ํ•˜๋‚˜์˜ text๋กœ ์ „์ฒ˜๋ฆฌ

แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2024-03-04 19 30 45
jms0522 commented 8 months ago

์งˆ๋ฌธ์— ๋ณ‘๋ช…์ด ๋“ค์–ด๊ฐ€ ์žˆ์„ ๊ฒฝ์šฐ ํ™•์‹คํžˆ ๋” ์ˆ˜์ค€ ๋†’์€ ๋Œ€๋‹ต์„ ํ•˜๋Š” ๊ฑธ ์•Œ ์ˆ˜ ์žˆ์Œ.

แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2024-03-04 19 38 11

์‹ค์ œ ๋‹ต๋ณ€

แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2024-03-04 19 41 08
jms0522 commented 8 months ago

๋‹ต๋ณ€ ํ€„๋ฆฌํ‹ฐ๊ฐ€ ์™”๋‹ค ๊ฐ”๋‹คํ•จ. ํ”„๋กฌํฌํŠธ ์ˆ˜์ • ํ•„์š”ํ•จ (ํ”„๋กฌํฌํŠธ ํŠœ๋‹ ์ œ๋กœ)

์ฑ—๋ด‡ ๋‹ต๋ณ€

แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2024-03-04 20 02 47

์‹ค์ œ ๋‹ต๋ณ€

แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2024-03-04 20 02 58
jms0522 commented 8 months ago

์Šนํ‘œ๊ฐ€ prompt ํŠœ๋‹ํ•œ ๋ชจ๋ธ ์„ฑ๋Šฅ

ํ•˜์ด๋‹ฅ ๋ฐ์ดํ„ฐ ์‚ฌ์šฉ

image

ํ”„๋กฌํ”„ํŠธ ํŠœ๋‹ ์•ˆ ํ•œ ๋„ค์ด๋ฒ„ ๋ฐ์ดํ„ฐ ์‚ฌ์šฉ

แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2024-03-04 20 05 11

ใ…‹ใ…‹;

jms0522 commented 8 months ago

0305 prompt tuning ์„ ํ†ตํ•œ ์ฑ—๋ด‡ ์„ฑ๋Šฅ ํ–ฅ์ƒ

์งˆ๋ฌธ์€ ์‹ค์ œ ๋„ค์ด๋ฒ„ ์ง€์‹์ธ ์งˆ๋ฌธ์„ ๊ฐ€์ ธ์™€ ์‚ฌ์šฉ.

์ฒซ ๋ฒˆ์งธ ์‹œ๋„

แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2024-03-05 10 15 58

๋‘ ๋ฒˆ์งธ ์‹œ๋„

แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2024-03-05 10 22 02

prompt ํŠœ๋‹์„ ํ†ตํ•ด ๋ฌธ๋งฅ์„ ์ดํ•ดํ•˜๊ณ  vectort db๋ฅผ ์ฐธ๊ณ ํ•ด ๋‹ต๋ณ€์„ ์ž˜ ํ•˜๋Š” ๊ฒƒ์„ ํ™•์ธ

jms0522 commented 8 months ago

Neo4j ํ™œ์šฉํ•ด db ๊ตฌ์ถ•

NAVER DIEASE

แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2024-03-05 10 29 36
minseok1994 commented 8 months ago

์œ ์‚ฌ๋‹ต๋ณ€ ์„œ๋น„์Šค ์ƒ์„ฑ

image

minseok1994 commented 8 months ago

๋„์ปค ์ปดํฌ์ฆˆ ํŒŒ์ผ๊ตฌ์„ฑ

image image
minseok1994 commented 8 months ago

html, css ์—…๋ฐ์ดํŠธ ๋ฐ ์ฝ”๋“œ ๋ฆฌํŒฉํ† ๋ง

image image
minseok1994 commented 8 months ago

๋กœ๊ทธ์ธ ํŽ˜์ด์ง€ ์žฌ๊ตฌ์„ฑ ๋ฐ ์นด์นด์˜ค api๋กœ๊ทธ์ธ ๊ตฌํ˜„

image image image
minseok1994 commented 8 months ago

์‹œ๊ฐํ™”๋ฅผ ์œ„ํ•œ ๋ฉ”ํŠธ๋ฆญ ๊ธฐ๋Šฅ๋ณ„๋กœ ์ถ”๊ฐ€

image