Upgrade to Pro — share decks privately, control downloads, hide ads and more …

IoTと田中の距離 #iotlt #田中 #openai

n0bisuke
January 16, 2024

IoTと田中の距離 #iotlt #田中 #openai

OpenAIのEmbedding APIで田中とIoTの距離を算出

田中IoTLT vol1 (IoTLT vol107新年会)での発表です。 https://iotlt.connpass.com/event/299782/

n0bisuke

January 16, 2024
Tweet

More Decks by n0bisuke

Other Decks in How-to & DIY

Transcript

  1. ాத*P5-5 *P5-5WPM

    *P5ͱాதͷڑ཭
    ࣗশాத
    ాதͷͼ͚͢
    !OCJTVLF
    JPUMUాத

    View full-size slide

  2. ࣗশాத࿮
    ాதͷͼ͚͢
    ɾϓϩτλΠϐϯάઐ໳εΫʔϧʮϓϩτΞ΢τελδΦʯ
    σδλϧϋϦ΢ουେֶେֶӃඇৗۈߨࢣϓϩμΫτϓϩτλΠϐϯά*
    ɾݸਓ׆ಈ
    *P5-5ʢࠃ಺࠷େͷ*P5ίϛϡχςΟʣ
    -*/&"1*&YQFSU.JDSPTPGU.71*#.$IBNQJPO
    ࡢ೥·ͰࣾձษڧͰډञ԰ཆ࿝೫୍ͰΞϧόΠτ
    OPCJTVLFTVHBXBSB
    ૣ଎ࣗশాதͰ͢Έ·ͤΜ

    View full-size slide

  3. ࡞ͬͯͨ΋ͷͱ͔
    ࠷ॳͷ.6TFS(SPVQγϟτϧϥϯͰരࢮͨ͠
    ೥य़͘Β͍ͷ.6(ݺͼࠐΈ܅

    View full-size slide

  4. ాத͞ΜɺϛʔτΞοϓ͓ΊͰͱ͏͍͟͝·͢

    View full-size slide

  5. 0QFO"*&NCFEEJOHT"1*
    ը૾Ҿ༻ݩIUUQTUPVLFJMBCDPNFNCFEEJOHBQJ
    ը૾Ҿ༻ݩIUUQTEFWDMBTTNFUIPEKQBSUJDMFTTFBSDIXJUIPQFOBJFNCFEEJOHT
    จষΛϕΫτϧʹม׵͢Δ͜ͱ͕Ͱ͖Δ"1*Ͱ͢ɻ
    ϕΫτϧʹ্ͨ͠Ͱڑ཭ܭࢉΛͯ͠ྨࣅੑΛௐ΂ΒΕ·͢ɻ

    View full-size slide

  6. ˞ࠓճΫϥεϝιου͞Μͷهࣄ͕ΊͪΌࢀߟʹͳΓ·ͨ͠ɻ

    View full-size slide

  7. ࠓճ͸*P5ͱాதͷڑ཭Λ&NCFEEJOH"1*Λ࢖ͬͯௐ΂ͯΈ͍ͨͱࢥ͍·͢ɻ
    *P5ͱాதͷڑ཭͸ͲΕ͘Β͍ʁ

    View full-size slide

  8. ·ͣ͸આ໌Λ༻ҙ͠·͢ɻ

    View full-size slide

  9. ·ͣ͸આ໌Λ༻ҙ͠·͢ɻ

    View full-size slide

  10. ·ͣ͸આ໌Λ༻ҙ͠·͢ɻ

    View full-size slide

  11. *P5ͷઆ໌ͱ*P5ͷઆ໌
    *P5ͷઆ໌ͱεϚʔτϗʔϜ
    ʹ͚ۙΕ͹ࣅͯΔ

    View full-size slide

  12. *P5ͱాதɺۙ͋͘Ε ئ๬

    View full-size slide

  13. *P5ͱླ໦
    ڑ཭
    ͜Ε΋೔ຊͰඇৗʹϙϐϡϥʔͳබࣈͰɺʮླ໦ʯ
    ͱ͸จࣈ௨Γʮླͷ໦ʯΛҙຯ͢Δɻ͜ͷබࣈ͸ݹ
    ୅͔Β೔ຊͷ͍͔ͭ͘ͷ஍ҬͰݟΒΕɺ໦΍৿ྛʹ
    ͪͳΜͰ໊෇͚ΒΕͨՄೳੑ͕͋Δɻ

    View full-size slide

  14. ࢀߟΫϥϝι͞ΜͷهࣄͰͷݕূ

    View full-size slide

  15. *P5ͱߴڮ
    ڑ཭
    ʮߴڮʯ͸ʮߴ͍ڮʯΛҙຯ͠ɺଟ͘ͷ৔߹ɺݹ͍
    ࣌୅ʹߴ͍ڮͷۙ͘ʹॅΜͰ͍ͨՈ଒ʹ༝དྷ͍ͯ͠
    Δͱ͞ΕΔɻ͜ͷබࣈ͸೔ຊશࠃͰ޿͘෼෍͍ͯ͠
    Δɻ

    View full-size slide

  16. ҰԠௐ΂ͯΈͨ

    View full-size slide

  17. *P5ͱੁݪ
    ڑ཭
    ʮੁݪʯ͸ɺฏ҆࣌୅ͷஶ໊ͳֶऀɾ੓࣏Ոɺੁݪ
    ಓਅʹ༝དྷ͢Δ೔ຊͷ఻౷తͳබࣈͰɺֶ໰ͱจԽ
    ͷ৅௃Ͱ͢ɻ

    View full-size slide

  18. ٕज़ཁૉΆ͍බࣈ΋ೖΕͯΈΔ

    View full-size slide

  19. *P5ͱ஁࣏
    ڑ཭
    ஁࣏͸ɺ஁໶৬ਓΛҙຯ͢ΔබࣈͰ͢ɻ஁໶͸ۚଐ
    ΛՃ೤͠ɺଧͪܗ੒͢Δٕज़Ͱɺݹ͔͘Β෢ث΍೶
    ۩ͳͲΛ࡞Δͷʹ༻͍ΒΕ͖ͯ·ͨ͠ɻ͜ͷබࣈΛ
    ࣋ͭਓʑ͸ɺྺ࢙తʹ͸஁໶৬ਓͷՈܥͰ͋ͬͨՄ
    ೳੑ͕ߴ͍Ͱ͢ɻ

    View full-size slide

  20. *P5ͱాத
    ڑ཭
    ೔ຊͷඇৗʹҰൠతͳබࣈͰɺాΜ΅΍தԝ஍ҬΛ
    ҙຯ͢Δ͜ͱ͕ଟ͍ɻ͜ͷ໊લ͸ɺ೶ۀ͕੝Μͳ஍
    Ҭ΍த৺஍ͷॅຽʹ༝དྷ͍ͯ͠ΔՄೳੑ͕͋Δɻ

    View full-size slide

  21. *P5ͱాத
    ڑ཭
    ೔ຊͷඇৗʹҰൠతͳබࣈͰɺాΜ΅΍தԝ஍ҬΛ
    ҙຯ͢Δ͜ͱ͕ଟ͍ɻ͜ͷ໊લ͸ɺ೶ۀ͕੝Μͳ஍
    Ҭ΍த৺஍ͷॅຽʹ༝དྷ͍ͯ͠ΔՄೳੑ͕͋Δɻ

    View full-size slide

  22. *P5ͱ໊͍ۙࣈϥϯΩϯά

    View full-size slide

  23. *P5ͱ໊͍ۙࣈϥϯΩϯά

    View full-size slide

  24. *P5ͱ໊͍ۙࣈϥϯΩϯά
    Ґதా
    Ґ౉ล
    Ґੁݪ
    Ґ஁࣏
    Ґߴڮ
    Ґླ໦
    Ґాத

    View full-size slide

  25. *P5ͱ໊͍ۙࣈϥϯΩϯά
    Ґதా
    Ґ౉ล
    Ґੁݪ
    Ґ஁࣏
    Ґߴڮ
    Ґླ໦
    Ґాத
    ·͔͞ͷϫʔετ

    View full-size slide

  26. ·ͱΊ
    *P5ͱాத͸ڑ཭͕ͱ͓͍

    View full-size slide